feat: Basic working config

- Added copilot
- Disabled nvim-navic (errors out when copilot-cmp is enabled)
- Added clangd
- Added packages for nvim-dap
This commit is contained in:
Jiří Štefka 2024-03-06 18:55:22 +01:00
parent e2cff543d6
commit 5a85ef99ff
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
8 changed files with 61 additions and 6 deletions
nvim/plugin

View file

@ -67,7 +67,7 @@ cmp.setup {
complete_with_source('path')
end
end, { 'i', 'c', 's' }),
['<C-n>'] = cmp.mapping(function(fallback)
['<C-j>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
-- expand_or_jumpable(): Jump outside the snippet region
@ -80,7 +80,7 @@ cmp.setup {
fallback()
end
end, { 'i', 'c', 's' }),
['<C-p>'] = cmp.mapping(function(fallback)
['<C-k>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif luasnip.jumpable(-1) then
@ -103,6 +103,7 @@ cmp.setup {
},
sources = cmp.config.sources {
-- The insertion order influences the priority of the sources
{ name = "copilot", group_index = 2 },
{ name = 'nvim_lsp', keyword_length = 3 },
{ name = 'nvim_lsp_signature_help', keyword_length = 3 },
{ name = 'buffer' },