neoconf.nvim icon indicating copy to clipboard operation
neoconf.nvim copied to clipboard

feature: support for nvim 0.11+ vim.lsp.config

Open cr4ftx opened this issue 1 year ago • 28 comments

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

cr4ftx avatar May 08 '25 18:05 cr4ftx

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.

github-actions[bot] avatar Jun 08 '25 02:06 github-actions[bot]

This isn't stale

mehalter avatar Jun 08 '25 02:06 mehalter

lol, was debugging my config for the last 8 hours on a new device, turns out, that this is my problem lmao...

snoweuph avatar Jul 28 '25 22:07 snoweuph

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.

github-actions[bot] avatar Aug 28 '25 02:08 github-actions[bot]

Not stale :)

mehalter avatar Aug 28 '25 02:08 mehalter

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.

github-actions[bot] avatar Sep 28 '25 02:09 github-actions[bot]

Not stale ❤️

mehalter avatar Sep 28 '25 02:09 mehalter

I made a new plugin for this: https://github.com/mrjones2014/codesettings.nvim

Haven't implemented autocomplete in Lua LSP config files yet.

mrjones2014 avatar Oct 03 '25 02:10 mrjones2014

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.

github-actions[bot] avatar Nov 03 '25 02:11 github-actions[bot]

Not stale

mehalter avatar Nov 03 '25 03:11 mehalter

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.

mrjones2014 avatar Nov 03 '25 16:11 mrjones2014

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.

github-actions[bot] avatar Dec 04 '25 02:12 github-actions[bot]

Not stale

mehalter avatar Dec 04 '25 03:12 mehalter

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.

github-actions[bot] avatar Jan 04 '26 02:01 github-actions[bot]

Not stale :)

mehalter avatar Jan 04 '26 04:01 mehalter

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.

github-actions[bot] avatar Feb 04 '26 02:02 github-actions[bot]

Not stale!

mehalter avatar Feb 04 '26 04:02 mehalter

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

cxwx avatar Mar 01 '26 15:03 cxwx

Thanks @cxwx I settled with .lazy.lua files:

return {
  {
    "neovim/nvim-lspconfig",
    opts = {
      servers = {
        <server name> = {
          enabled = false,
        },
      },
    },
  },
}

peterfication avatar Mar 07 '26 19:03 peterfication

Did any new plugins spring up in the past year to address this issue (loading project-local settings for language servers)?

dmitmel avatar Mar 07 '26 23:03 dmitmel