1
0
Fork 0

neovim: Update config

This commit is contained in:
Daniel Kempkens 2022-02-12 22:55:13 +01:00
parent f1aab63851
commit 4b772ef0a3
3 changed files with 7 additions and 3 deletions

View file

@ -90,6 +90,11 @@ cmp.setup {
end,
}),
['<C-Space>'] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Insert,
select = true,
}),
['<CR>'] = cmp.mapping.confirm({ select = true }),
},

View file

@ -119,7 +119,7 @@ function M.setup()
wk.register(leader, {prefix = "<leader>", noremap = false, silent = true})
-- Other mappings
vim.api.nvim_set_keymap('n', '<CR>', ':noh<CR><CR>', {noremap = true, silent = true})
vim.api.nvim_set_keymap('n', '<CR>', ':nohlsearch<CR><CR>', {noremap = true, silent = true})
vim.api.nvim_set_keymap('i', '<CR>', 'v:lua.nifoc_keymap_cr_complete()', {noremap = true, expr = true, silent = true})

View file

@ -7,14 +7,13 @@ vim.opt.shell = '/bin/sh'
-- Options
vim.opt.encoding = 'utf-8'
vim.opt.synmaxcol = 500
vim.opt.showmode = false
vim.opt.ruler = false
vim.opt.ttyfast = true
vim.opt.lazyredraw = true
vim.opt.cursorline = true
vim.opt.list = true
vim.opt.listchars = {tab = '»·', trail = '·'}
vim.opt.listchars = {tab = '»·', trail = '·', nbsp = '·', precedes = '', extends = ''}
vim.opt.showbreak = ''
vim.opt.backspace = {'indent', 'eol', 'start'}
vim.opt.showtabline = 2