nlsp-settings.nvim
lspkind.nvim
nlsp-settings.nvim | lspkind.nvim | |
---|---|---|
10 | 14 | |
297 | 1,322 | |
- | - | |
8.5 | 6.1 | |
3 days ago | 4 months ago | |
Lua | Lua | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nlsp-settings.nvim
-
What SQL formatter do you use? What can give you Intellij like formatting for SQL?
I also use sql-language-server for completion. It works for me with a .sqlrc.json config file, which allows me to change database config based on parent directory. I have not been able to configure sqlls with nlsp-settings for some reason.
-
Setting up a local LSP config for clangd using nlspsettings
there is a json schema for nlsp-settings clangd configuration: here In your case, your clangd.json should result like this
-
neoconf.nvim: a Neovim plugin to manage global and project-local settings
import existing settings from vscode, coc.nvim and nlsp-settings.nvim
-
nlsp_settings: Root dir for pyright/jedi-ls
Couldn't figure out from the nlsp_settings neovim plugin ( https://github.com/tamago324/nlsp-settings.nvim ), how to set the "Root dir" or the "Root pattern" property. I am using the jedi-language-server for lsp but would switch to pyright if this problem could be fixed only in that one. Did anyone run into this problem before and can help me? tnx
-
Managing multiple incompatible toolchains/compilers?
Oh I see now, maybe local nvim lsp configs might help you? https://github.com/tamago324/nlsp-settings.nvim
-
I'm not getting null-ls autocompletions for JSX unless tsserver is required
I'm sure there are low level configuration you can do to configure them, like your snippet above, I suggest you to try nlsp-settings.nvim to configure lsp using json (like in vsc*de 😅).
-
Nvim config for working with programs running in docker containers
And then with nlsp-settings you can add a config like "extraPaths" or something like that that gives the pylsp or pyright extra places to look for libraries. With that done it works, the thing is you would have config in the compose file that is specific to you only.
-
How to get completion in commonly used JSON files like package.json, tsconfig.json, prettierrc.json etc?
I think you would need to pass in a schema to jsonls for that. Check out this plugin: https://github.com/tamago324/nlsp-settings.nvim/ to see how a schema would be shaped like
-
Defaults.nvim: A minimal but complete init.lua template
A similar idea for that uses JSON to configure Neovim LSP: nlsp-settings.nvim.
- nlsp-settings: A plugin for setting Neovim LSP with JSON files
lspkind.nvim
-
I do love neovim!
There's a cmp-icons plugin: https://github.com/onsails/lspkind.nvim and also you can see the cmp documentation inside vim running :h cmp I spend many hours reading each plugin documentation to customize all my plugins. I hope I've helped.
-
Trouble Getting Icons To Show Properly
If you are referring specifically to icons in your autocompletion suggestions menu you have to set it to use them. This can be achieved manually with the format key in the nvim-cmp setup (assuming you are using nvim-cmp) or with a plugin like lspkind.nvim
-
What are the best vim plugins for Go right now?
If you use neovim, you can refer to my init.lua; I use vim-go, lsp and other goodies like lspkind to display vscode-like pictograms.
-
Anyone have autocomplete working with rust-tools, nvm-cmp, etc.?
-- Provide some indication that rust-analyzer is busy! local lsp_status = require('lsp-status') lsp_status.register_progress() -- Basic rust/lsp/cmp settings from https://sharksforarms.dev/posts/neovim-rust/ local nvim_lsp = require('lspconfig') local opts = { tools = { -- rust-tools options autoSetHints = true, hover_with_actions = true, inlay_hints = { show_parameter_hints = false, parameter_hints_prefix = "", other_hints_prefix = "=> ", }, }, -- all the opts to send to nvim-lspconfig -- these override the defaults set by rust-tools.nvim -- see https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rust_analyzer server = { -- on_attach is a callback called when the language server attachs to the buffer on_attach = lsp_status.on_attach, capabilities = lsp_status.capabilities, settings = { -- to enable rust-analyzer settings visit: -- https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/generated_config.adoc -- and more: https://github.com/simrat39/rust-tools.nvim/wiki/Server-Configuration-Schema ["rust-analyzer"] = { -- enable clippy on save checkOnSave = { command = "clippy" }, } } }, } require('rust-tools').setup(opts) -- Setup Completion -- See https://github.com/hrsh7th/nvim-cmp#basic-configuration -- Used for super-tab functionality local has_words_before = function() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil end local feedkey = function(key, mode) vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(key, true, true, true), mode, true) end local lspkind = require('lspkind') local cmp = require'cmp' cmp.setup({ completion = { autocomplete = true }, -- Enable LSP snippets snippet = { expand = function(args) vim.fn["vsnip#anonymous"](args.body) end, }, mapping = { [''] = cmp.mapping.select_prev_item(), [''] = cmp.mapping.select_next_item(), [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete(), [''] = cmp.mapping.close(), [''] = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = true, }), -- Add tab support [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() elseif vim.fn["vsnip#available"](1) == 1 then feedkey("(vsnip-expand-or-jump)", "") elseif has_words_before() then cmp.complete() else fallback() -- The fallback function sends a already mapped key. In this case, it's probably ``. end end, { "i", "s" }), [""] = cmp.mapping(function() if cmp.visible() then cmp.select_prev_item() elseif vim.fn["vsnip#jumpable"](-1) == 1 then feedkey("(vsnip-jump-prev)", "") end end, { "i", "s" }), }, -- Installed sources sources = { { name = 'nvim_lsp' }, --, trigger_characters={'.', ":"} }, { name = 'vsnip' }, { name = 'path' }, { name = 'buffer' }, { name = 'nvim_lsp_signature_help' }, { name = 'nvim_lsp_document_symbol' }, }, -- Fancy symbols formatting = { format = lspkind.cmp_format({ mode = 'symbol_text', -- show both symbol & text for now maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters) -- The function below will be called before any actual modifications from lspkind -- so that you can provide more controls on popup customization. (See [#30](https://github.com/onsails/lspkind-nvim/pull/30)) --before = function (entry, vim_item) --... --return vim_item --end }) }, completion = { autocomplete = true }, })
-
Neovim LSP Setup + Code Completion Engine
All the snippets, mapping, formatting and sources part in the above code snippet is expalained nicely in the plugin's documentation. For above code to work, you also have to install lspkind which provides awesome icons in the code completions.
-
Lspconfig configuration issues
To style the completion popup, you need to add formatting. Going by the cute little scissors, you probably want to install lsp-kind and add something like this to your cmp.setup
-
Totally confused about completion
https://github.com/onsails/lspkind-nvim (optionally)
-
Looks like the nvim-compe plugin is going to be deprecated, replaced by nvim-cmp (eventually)
I copy pasted the icons from https://github.com/onsails/lspkind-nvim/blob/master/lua/lspkind/init.lua and added the spaces:
- Is anyone here using neovim for f# programming and could point me to useful plugins, which work with neovim 0.5
- Java/Kotlin developers that use NeoVim as their main IDE, recommendations to someone that uses Intellij IDEA for java-dev but nvim for the rest?
What are some alternatives?
nvim-lspconfig - Quickstart configs for Nvim LSP
cmp-nvim-lsp - nvim-cmp source for neovim builtin LSP client
SchemaStore.nvim - 🛍 JSON schemas for Neovim
lspsaga.nvim - improve neovim lsp experience [Moved to: https://github.com/nvimdev/lspsaga.nvim]
lspkind-nvim - vscode-like pictograms for neovim lsp completion items [Moved to: https://github.com/onsails/lspkind.nvim]
vscode-codicons - The icon font for Visual Studio Code
kickstart.nvim - A launch point for your personal nvim configuration
lspsaga.nvim - improve neovim lsp experience
neoconf.nvim - 💼 Neovim plugin to manage global and project-local settings
vim-emoji-icon-theme - Emoji/Unicode Icons Theme for Vim and Neovim with support for 40+ plugins and 380+ filetypes 🎨💙💛🤍💚
defaults.nvim - A small, documented, and featureful neovim starter config [Moved to: https://github.com/nvim-lua/kickstart.nvim]
friendly-snippets - Set of preconfigured snippets for different languages.