add autopairs and create bindings for jumping through params in snippets

This commit is contained in:
2024-10-01 21:30:57 +02:00
parent b8e245dede
commit 7ab1449943
4 changed files with 28 additions and 7 deletions

View File

@@ -65,6 +65,8 @@ local on_attach = function(client, bufnr)
--end, bufopts)
end
local capabilities = require("cmp_nvim_lsp").default_capabilities()
-- Configure each language
-- How to add LSP for a specific language?
-- 1. use `:Mason` to install corresponding LSP
@@ -73,5 +75,6 @@ end
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
capabilities = capabilities,
}
end