From f49f09d8afacf7b3e83e08a0f14488b5bbb3cd16 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 4 Jul 2024 15:31:43 +0200 Subject: [PATCH] fix cmp --- lua/custom/plugins/lsp.lua | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/lua/custom/plugins/lsp.lua b/lua/custom/plugins/lsp.lua index c032663..31ea64f 100644 --- a/lua/custom/plugins/lsp.lua +++ b/lua/custom/plugins/lsp.lua @@ -1,4 +1,4 @@ -local cmp = require 'cmp' +local cmp = require 'cmp' -- this is nvim-cmp return { { 'neovim/nvim-lspconfig', @@ -113,7 +113,7 @@ return { }, { -- Autocompletion 'hrsh7th/nvim-cmp', - enabled = false, + enabled = not vim.g.started_by_firenvim, event = 'InsertEnter', dependencies = { -- Snippet Engine & its associated nvim-cmp source @@ -313,10 +313,6 @@ return { }, }, { 'kosayoda/nvim-lightbulb', event = { 'BufReadPre', 'BufNewFile' } }, - { - 'hrsh7th/nvim-cmp', - enabled = not vim.g.started_by_firenvim, - }, { 'mfussenegger/nvim-dap', lazy = false, @@ -403,16 +399,6 @@ return { }, }, { 'Bilal2453/luvit-meta', lazy = true }, -- optional `vim.uv` typings - { -- optional completion source for require statements and module annotations - 'hrsh7th/nvim-cmp', - opts = function(_, opts) - opts.sources = opts.sources or {} - table.insert(opts.sources, { - name = 'lazydev', - group_index = 0, -- set group index to 0 to skip loading LuaLS completions - }) - end, - }, { 'mrcjkb/rustaceanvim', enabled = false,