nvim: move out capabilities to a module

This commit is contained in:
Primrose 2025-07-08 23:37:54 +02:00
parent 4856a46051
commit c035fc7fd5
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 7 additions and 7 deletions

View file

@ -29,4 +29,8 @@ M.on_attach = function(client, bufnr)
end
end
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities)
M.capabilities = capabilities
return M