diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-07-03 18:15:51 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-07-03 18:17:00 +0200 |
| commit | 850f49dee880c6881c53c1decbb6aedf857fec1f (patch) | |
| tree | d889f12822a084fc6f3cc6f0118748598e33c567 /lua/alpha | |
| parent | b3a686746016d6267792790640d95f51c8555f88 (diff) | |
| download | nvim-conf-850f49dee880c6881c53c1decbb6aedf857fec1f.tar.gz nvim-conf-850f49dee880c6881c53c1decbb6aedf857fec1f.zip | |
update completition and mason tools
Diffstat (limited to 'lua/alpha')
| -rw-r--r-- | lua/alpha/completition/init.lua | 7 | ||||
| -rw-r--r-- | lua/alpha/lsp/mason.lua | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lua/alpha/completition/init.lua b/lua/alpha/completition/init.lua index c511bac..35ba27e 100644 --- a/lua/alpha/completition/init.lua +++ b/lua/alpha/completition/init.lua @@ -36,12 +36,11 @@ cmp.setup { ["<c-space>"] = cmp.mapping.complete(), }, sources = { - { name = "nvim_lua", group_index = 2 }, + { name = "nvim_lua" }, { name = "nvim_lsp" }, { name = "path" }, - { name = "luasnip", group_index = 2 }, + { name = "luasnip" }, { name = "copilot", group_index = 2 }, - -- { name = "nvim_lsp_signature_help" }, { name = "buffer", keyword_length = 4, @@ -71,7 +70,7 @@ cmp.setup { with_text = true, menu = { buffer = "[buf]", - nvim_lsp = "[LSP]", + nvim_lsp = "[ ]", nvim_lua = "[api]", path = "[path]", luasnip = "[snip]", diff --git a/lua/alpha/lsp/mason.lua b/lua/alpha/lsp/mason.lua index e164562..6948454 100644 --- a/lua/alpha/lsp/mason.lua +++ b/lua/alpha/lsp/mason.lua @@ -21,5 +21,7 @@ mason_lspconfig.setup { -- filter the list for the ones not globally installed require("mason-tool-installer").setup { - ensure_installed = require "alpha.lsp.tools", + ensure_installed = vim.tbl_filter(function (tool) + return vim.fn.executable(tool) == 0 + end, require "alpha.lsp.tools"), } |