Integrate neovim config into home-manager, separate external configs under config/

This commit is contained in:
2026-04-07 18:28:22 +02:00
parent d9ef3b056e
commit 5403b4988e
49 changed files with 7286 additions and 50 deletions

View File

@@ -0,0 +1,26 @@
-- cmp
local cmp = require('cmp')
cmp.setup({
snippet = {
-- REQUIRED - you must specify a snippet engine
expand = function(args)
vim.snippet.expand(args.body) -- For native neovim snippets (Neovim v0.10+)
end,
},
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
["<C-j>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),
["<C-k>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }),
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' }, },
{ { name = 'buffer' }, }
)
})