mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-09-10 19:56:24 +00:00
Fix nvim-cmp setup and telescope config
This commit is contained in:
@@ -9,7 +9,6 @@ local source_mapping = {
|
||||
cmp_tabnine = "[TN]",
|
||||
path = "[Path]",
|
||||
}
|
||||
|
||||
cmp.setup({
|
||||
-- snippet = {
|
||||
-- -- REQUIRED - you must specify a snippet engine
|
||||
@@ -32,8 +31,8 @@ cmp.setup({
|
||||
end,
|
||||
},
|
||||
mapping = {
|
||||
['<C-p>'] = cmp.mapping.select_prev_item(),
|
||||
['<C-n>'] = cmp.mapping.select_next_item(),
|
||||
['<C-p>'] = cmp.mapping(cmp.mapping.select_prev_item(), { 'i', 'c' }),
|
||||
['<C-n>'] = cmp.mapping(cmp.mapping.select_next_item(), { 'i', 'c' }),
|
||||
['<C-d>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
@@ -76,7 +75,8 @@ cmp.setup.cmdline(':', {
|
||||
{ name = 'path' }
|
||||
}, {
|
||||
{ name = 'cmdline' }
|
||||
})
|
||||
}),
|
||||
mappings = cmp.mapping.preset.cmdline(),
|
||||
})
|
||||
|
||||
-- Setup tabnine
|
||||
|
@@ -6,10 +6,10 @@ local xnoremap = Remap.xnoremap
|
||||
local nmap = Remap.nmap
|
||||
|
||||
-- better window movement
|
||||
nnoremap('<C-h>', '<C-w>h')
|
||||
nnoremap('<C-j>', '<C-w>j')
|
||||
nnoremap('<C-k>', '<C-w>k')
|
||||
nnoremap('<C-l>', '<C-w>l')
|
||||
-- nnoremap('<C-h>', '<C-w>h')
|
||||
-- nnoremap('<C-j>', '<C-w>j')
|
||||
-- nnoremap('<C-k>', '<C-w>k')
|
||||
-- nnoremap('<C-l>', '<C-w>l')
|
||||
|
||||
-- resize with arrows
|
||||
nnoremap('<C-Up>', ':resize -2<CR>')
|
||||
|
Reference in New Issue
Block a user