From 511efe89ed084bc922ae142d32e08427859198f4 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 10 Jun 2024 23:07:28 +0200 Subject: nvim: Completely rewrite my configuration --- .config/nvim/after/plugin/nvim-cmp.lua | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .config/nvim/after/plugin/nvim-cmp.lua (limited to '.config/nvim/after/plugin/nvim-cmp.lua') diff --git a/.config/nvim/after/plugin/nvim-cmp.lua b/.config/nvim/after/plugin/nvim-cmp.lua deleted file mode 100644 index 399d5a3..0000000 --- a/.config/nvim/after/plugin/nvim-cmp.lua +++ /dev/null @@ -1,32 +0,0 @@ -local capabilities = require('cmp_nvim_lsp').default_capabilities() -local cmp = require('cmp') -local conf = require('lspconfig') -local snip = require('luasnip') - -conf['clangd'].setup { capabilities = capabilities } -conf['gopls'].setup { capabilities = capabilities } -conf['lua_ls'].setup { capabilities = capabilities } -conf['rust_analyzer'].setup { capabilities = capabilities } -cmp.setup { - snippet = { - expand = function(args) - snip.lsp_expand(args.body) - end, - }, - mapping = cmp.mapping.preset.insert({ - [''] = cmp.mapping.select_prev_item(), - [''] = cmp.mapping.select_next_item(), - [''] = cmp.mapping.abort(), - [''] = cmp.mapping.confirm({ select = true }), - }), - sources = cmp.config.sources({ - { name = 'nvim_lsp' }, - { name = 'path' }, - { name = 'luasnip' }, - }, { - { name = 'buffer', length = 5 }, - }), - experimental = { - ghost_text = true, - } -} -- cgit v1.2.3