1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

set default conf for all LSP in one place (#405)

This commit is contained in:
jdhao
2025-04-26 22:02:48 +02:00
committed by GitHub
parent 8839201450
commit ea23f913b4
8 changed files with 10 additions and 35 deletions

View File

@@ -74,6 +74,15 @@ vim.api.nvim_create_autocmd("LspAttach", {
-- Enable lsp servers when they are available
local capabilities = require("lsp_utils").get_default_capabilities()
vim.lsp.config("*", {
capabilities = capabilities,
flags = {
debounce_text_changes = 500,
},
})
-- A mapping from lsp server name to the executable name
local enabled_lsp_servers = {
pyright = "delance-langserver",