From: Samir Benmendil Date: Wed, 14 Aug 2024 09:38:57 +0000 (+0100) Subject: nvim: import full lspconfig spec from lazyvim X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/a1f285aeda14bd0417741248b38672f6e51126ac nvim: import full lspconfig spec from lazyvim --- diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 7957d82..aa4f184 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -12,7 +12,39 @@ return { keys[#keys+1] = { "gr", false } end, opts = { - inlay_hints = { enabled = false }, + diagnostics = { + underline = true, + update_in_insert = false, + virtual_text = { + spacing = 4, + source = "if_mani", + prefix = "●", + }, + severity_sort = true, + signs = { + text = { + [vim.diagnostic.severity.ERROR] = " ", + [vim.diagnostic.severity.WARN] = " ", + [vim.diagnostic.severity.HINT] = " ", + [vim.diagnostic.severity.INFO] = " ", + }, + }, + }, + inlay_hints = { enabled = false, }, + codelens = { enabled = false, }, + document_highlight = { enabled = true, }, + capabilities = { + workspace = { + fileOperations = { + didRename = true, + willRename = true, + }, + }, + }, + format = { + formatting_options = nil, + timeout_ms = nil, + }, -- Automatically format on save -- autoformat = false, -- LSP Server Settings @@ -21,6 +53,18 @@ return { lua_ls = { settings = { Lua = { + workspace = { checkThirdParty = false, }, + codeLens = { enable = true, }, + completion = { callSnippet = "Replace", }, + doc = { privateName = { "^_" }, }, + hint = { + enable = true, + setType = false, + paramType = true, + paramName = "Disable", + semicolon = "Disable", + arrayIndex = "Disable", + }, diagnostics = { disable = { "missing-fields", }, },