Pi66

dots
My personal Linux configuration files and dotfiles.
git clone https://git.pi66.xyz/dots

← back to log

use stored variable instead of recalling it

author: pi66
date: 2026-05-02 17:48
hash: ce0e3ea76e3156c648a2c41b46fa5009e2fc1de3

Diffstat:

M

nvim/lua/lsp.lua
3 ++++++++++++++++++++----------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/nvim/lua/lsp.lua b/nvim/lua/lsp.lua
index 4b2edc9..5b0e3d8 100644
--- a/nvim/lua/lsp.lua
+++ b/nvim/lua/lsp.lua
@@ -8,7 +8,8 @@ for _, s in ipairs(servers) do
    })
 end

-require('lspconfig').clangd.setup{
+lsp.clangd.setup{
+   capabilities = caps,
     cmd = { "clangd", "--enable-config" }
 }