nvim-lsp
nlsp-settings.nvim
nvim-lsp | nlsp-settings.nvim | |
---|---|---|
1 | 10 | |
6,664 | 298 | |
- | - | |
10.0 | 8.5 | |
over 1 year ago | about 20 hours ago | |
Lua | Lua | |
GNU General Public License v3.0 or later | 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.
nvim-lsp
-
Setting up a local config for clangd not working for project not working.
return { local cwd = vim.fn.getcwd(-1, -1) if cwd == "/home/jared/Projects/CPP/NakOS" then local configs = require("nvim_lsp/configs") local util = require("nvim_lsp/util") local root_pattern = util.root_pattern("compile_commands.json", "compile_flags.txt", ".git") configs.clangd = { default_config = util.utf8_config({ cmd = { "clangd", "--background-index", "--query-driver", "/home/jared/Projects/CPP/NakOS/Toolchain/opt/cross/bin/i686-elf-g++", }, filetypes = { "c", "cpp", "objc", "objcpp" }, root_dir = function(fname) local filename = util.path.is_absolute(fname) and fname or util.path.join(vim.loop.cwd(), fname) return root_pattern(filename) or util.path.dirname(filename) end, }), -- commands = {}; -- on_new_config = function(new_config) end; -- on_attach = function(client, bufnr) end; docs = { description = [[ https://clang.llvm.org/extra/clangd/Installation.html **NOTE:** Clang >= 9 is recommended! See [this issue for more](https://github.com/neovim/nvim-lsp/issues/23). clangd relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) specified as compile_commands.json or, for simpler projects, a compile_flags.txt. ]], default_config = { root_dir = [[root_pattern("compile_commands.json", "compile_flags.txt", ".git") or dirname]], on_init = [[function to handle changing offsetEncoding]], capabilities = [[default capabilities, with offsetEncoding utf-8]], }, }, } end }
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
What are some alternatives?
deep-symbols - LSP document symbols improved
nvim-lspconfig - Quickstart configs for Nvim LSP
CuberiteExamplePlugin - [WIP] This is an example plugin to get you comfortable with Cuberite plugins etc
lspkind.nvim - vscode-like pictograms for neovim lsp completion items
cellular-automaton.nvim - A useless plugin that might help you cope with stubbornly broken tests or overall lack of sense in life. It lets you execute aesthetically pleasing, cellular automaton animations based on the content of neovim buffer.
SchemaStore.nvim - 🛍 JSON schemas for Neovim
stay-centered.nvim - A neovim plugin to keep your cursor at the center of the screen.
lspkind-nvim - vscode-like pictograms for neovim lsp completion items [Moved to: https://github.com/onsails/lspkind.nvim]
pwnvim - 👾 Neovim, the k1ss way [Moved to: https://github.com/pwnwriter/pwnvim]
kickstart.nvim - A launch point for your personal nvim configuration
csv-tools.lua - for csv
neoconf.nvim - 💼 Neovim plugin to manage global and project-local settings