From 4014b7dd9df7e1b947140b903ce5005592d07865 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 4 Jul 2024 16:06:22 +0200 Subject: [PATCH] cmp is a pain --- lua/custom/plugins/lsp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/custom/plugins/lsp.lua b/lua/custom/plugins/lsp.lua index 488c184..9fce50c 100644 --- a/lua/custom/plugins/lsp.lua +++ b/lua/custom/plugins/lsp.lua @@ -1,4 +1,3 @@ -local cmp = require 'cmp' -- this is nvim-cmp return { { 'neovim/nvim-lspconfig', @@ -16,6 +15,9 @@ return { -- used for completion, annotations and signatures of Neovim apis { 'folke/neodev.nvim', opts = {} }, }, + config = function() + require 'custom.plugins.configs.lsp' + local cmp = require 'cmp' -- this is nvim-cmp keys = { { '', cmp.mapping.select_prev_item(), desc = 'Next completion' }, { '', cmp.mapping.select_next_item(), desc = 'Last completion' }, @@ -58,8 +60,6 @@ return { desc = 'Last completion', }, }, - config = function() - require 'custom.plugins.configs.lsp' end, }, -- See `:help gitsigns` to understand what the configuration keys do