feat: lsp changes

This commit is contained in:
Tine 2025-01-02 15:20:31 +01:00
parent d24e7c2235
commit 5a88b903c1
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -76,16 +76,16 @@ cmp.setup({
end, { "i", "s", "c" }), end, { "i", "s", "c" }),
}), }),
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = "copilot" }, { name = "copilot", group_index = 1, max_item_count = 2 },
{ name = "codeium" }, { name = "codeium", group_index = 1, max_item_count = 2 },
{ name = "nvim_lsp" }, { name = "nvim_lsp", group_index = 2, max_item_count = 10 },
{ name = "git" }, { name = "git", group_index = 3, max_item_count = 5 },
-- { name = 'vsnip' }, -- For vsnip users. -- { name = 'vsnip' }, -- For vsnip users.
-- { name = 'luasnip' }, -- For luasnip users. -- { name = 'luasnip' }, -- For luasnip users.
-- { name = 'ultisnips' }, -- For ultisnips users. -- { name = 'ultisnips' }, -- For ultisnips users.
-- { name = 'snippy' }, -- For snippy users. -- { name = 'snippy' }, -- For snippy users.
}, { }, {
{ name = "buffer" }, { name = "buffer", group_index = 3, max_item_count = 5 },
}), }),
}) })
@ -132,7 +132,7 @@ require("mason-lspconfig").setup({
"angularls", -- angular "angularls", -- angular
"ansiblels", -- ansible "ansiblels", -- ansible
"bashls", -- bash "bashls", -- bash
"bufls", -- buf "buf_ls", -- buf
"cssls", -- css "cssls", -- css
"denols", -- deno "denols", -- deno
"dockerls", -- docker "dockerls", -- docker
@ -145,7 +145,7 @@ require("mason-lspconfig").setup({
"htmx", -- htmx "htmx", -- htmx
"helm_ls", -- helm "helm_ls", -- helm
"jsonls", -- json "jsonls", -- json
"tsserver", -- javascript/typescript "ts_ls", -- javascript/typescript
"marksman", -- markdown "marksman", -- markdown
"vale_ls", -- markdown/prose "vale_ls", -- markdown/prose
"swift_mesonls", -- meson "swift_mesonls", -- meson