feature: support for nvim 0.11+ vim.lsp.config
Did you check the docs?
- [x] I have read all the neoconf.nvim docs
Is your feature request related to a problem? Please describe.
I switched to the new vim.lsp api to enable language servers and neoconf does not override the LS settings.
https://github.com/neovim/nvim-lspconfig/issues/3494
Describe the solution you'd like
support vim.lsp API
Describe alternatives you've considered
support both lspconfig and native vim.lsp
Additional context
============================================================================== neoconf: require("neoconf.health").check()
neoconf.nvim ~
- ✅ OK jsonc parser for tree-sitter is installed
- ✅ OK lazydev.nvim is installed
- ✅ OK lspconfig is installed
- ⚠️ WARNING lspconfig jsonls is not installed? You won't get any auto completion in your settings files
- ⚠️ WARNING lspconfig lua_ls is not installed? You won't get any auto completion in your lua settings files
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This isn't stale
lol, was debugging my config for the last 8 hours on a new device, turns out, that this is my problem lmao...
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Not stale :)
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Not stale ❤️
I made a new plugin for this: https://github.com/mrjones2014/codesettings.nvim
Haven't implemented autocomplete in Lua LSP config files yet.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Not stale
FWIW I've made a lot of progress with codesettings.nvim. It now has full jsonls and lua_ls completion support, including completion for mixed dotted and nested key paths, and supports a few more LSP servers, as well as some other extensibility features.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Not stale
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Not stale :)
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Not stale!
maybe using config in .nvim.lua
vim.lsp.config(...)
vim.lsp.enable(...)
vim.cmd("Lspstop ...")
with vim.opt.exrc = true
and we do not need this plugin for lastest nvim
Thanks @cxwx I settled with .lazy.lua files:
return {
{
"neovim/nvim-lspconfig",
opts = {
servers = {
<server name> = {
enabled = false,
},
},
},
},
}
Did any new plugins spring up in the past year to address this issue (loading project-local settings for language servers)?