Remove snippets and buffer completion from nvim cmp, Copilot does a great job of this, now we only have completions for defined variables, functions, and keywords etc

This commit is contained in:
Martin Larsson 2024-05-23 11:00:28 +02:00
parent 14aaeece77
commit ec81bcfa73
2 changed files with 9 additions and 10 deletions

View file

@ -7,6 +7,7 @@ local function setup_lsp(server_names)
local server = lspconfig[server_name]
if server then
local server_table = require("language_servers/" .. server_name)
capabilities.textDocument.completion.completionItem.snippetSupport = false
server_table.capabilities = capabilities
server_table.on_attach = function(client, bufnr)
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })