diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -25,10 +25,13 @@ return { event = "InsertEnter", dependencies = { "hrsh7th/cmp-buffer", - "hrsh7th/cmp-path", + "hrsh7th/cmp-calc", "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-nvim-lsp-signature-help", "hrsh7th/cmp-nvim-lua", + "hrsh7th/cmp-omni", + "hrsh7th/cmp-path", + "quangnguyen30192/cmp-nvim-tags", }, opts = function() local cmp = require("cmp") @@ -39,13 +42,7 @@ return { mapping = cmp.mapping.preset.insert({ [""] = cmp.mapping.scroll_docs(-4), [""] = cmp.mapping.scroll_docs(4), - [""] = function(fallback) - if cmp.visible() then - cmp.select_next_item() - else - cmp.complete() - end - end, + [""] = cmp.mapping.select_next_item(), [""] = cmp.mapping.select_prev_item(), [""] = cmp.mapping.abort(), [""] = cmp.mapping.confirm({select = true}), @@ -63,14 +60,13 @@ return { { name = "nvim_lsp_signature_help" }, { name = "nvim_lua" }, }, { + { name = "calc" }, { name = "buffer" }, { name = "path" }, + }, { + { name = "tags" }, + { name = "omni" }, }), - experimental = { - ghost_text = { - hl_group = "LspCodeLens", - }, - }, } end, },