aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-07-03 18:15:51 +0200
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-07-03 18:17:00 +0200
commit850f49dee880c6881c53c1decbb6aedf857fec1f (patch)
treed889f12822a084fc6f3cc6f0118748598e33c567 /lua
parentb3a686746016d6267792790640d95f51c8555f88 (diff)
downloadnvim-conf-850f49dee880c6881c53c1decbb6aedf857fec1f.tar.gz
nvim-conf-850f49dee880c6881c53c1decbb6aedf857fec1f.zip
update completition and mason tools
Diffstat (limited to 'lua')
-rw-r--r--lua/alpha/completition/init.lua7
-rw-r--r--lua/alpha/lsp/mason.lua4
-rw-r--r--lua/plugins/completition.lua1
3 files changed, 6 insertions, 6 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"),
}
diff --git a/lua/plugins/completition.lua b/lua/plugins/completition.lua
index b0c93d6..795b016 100644
--- a/lua/plugins/completition.lua
+++ b/lua/plugins/completition.lua
@@ -24,7 +24,6 @@ return {
},
config = true,
},
- -- "hrsh7th/cmp-nvim-lsp-signature-help",
},
event = "VeryLazy",
config = function()