This commit is contained in:
2023-02-12 03:11:31 +01:00
parent ebc9b1a639
commit 50c09a01e5
4 changed files with 23 additions and 10 deletions

View File

@@ -64,7 +64,7 @@ local cmp_status_ok, cmp = pcall(require, "cmp")
},
-- Accept currently selected item. If none selected, `select` first item.
-- Set `select` to `false` to only confirm explicitly selected items.
["<CR>"] = cmp.mapping.confirm { select = true },
["<CR>"] = cmp.mapping.confirm { select = false },
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()

View File

@@ -24,9 +24,24 @@ set.listchars = 'tab:→ ,eol:↲,nbsp:␣,trail:•,extends:⟩,precedes:⟨'
set.tabstop = 4
set.shiftwidth = 4
--set.expandtab = true
vim.o.expandtab = false
vim.o.smartindent = true
set.swapfile = false
-- spellcheck (enable with `set spell`)
vim.o.spelllang = 'cs,en_gb'
vim.cmd [[ hi SpellBad cterm=bold ctermbg=red ctermfg=white ]]
-- cursor padding from top and bottom
vim.o.scrolloff = 5
-- better navigation in split windows
vim.keymap.set('n', '<C-h>', '<C-w>h')
vim.keymap.set('n', '<C-j>', '<C-w>j')
vim.keymap.set('n', '<C-k>', '<C-w>k')
vim.keymap.set('n', '<C-h>', '<C-w>l')
-- colorscheme
vim.cmd [[ color base16-default-dark ]]