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:
parent
e2cff543d6
commit
5a85ef99ff
8 changed files with 61 additions and 6 deletions
nvim/plugin
|
@ -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' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue