nvim: make <space> no-op, don't wrap lines

This commit is contained in:
tastytea 2022-08-08 15:13:31 +02:00
parent d9df2ff4ac
commit a95c239305
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 3 additions and 0 deletions

View File

@ -2,5 +2,7 @@ function map(mode, shortcut, command)
vim.keymap.set(mode, shortcut, command, { noremap = true, silent = true }) vim.keymap.set(mode, shortcut, command, { noremap = true, silent = true })
end end
map('n', '<space>', '<nop>')
map('n', '<M-Left>', ':tabprevious<cr>') map('n', '<M-Left>', ':tabprevious<cr>')
map('n', '<M-Right>', ':tabnext<cr>') map('n', '<M-Right>', ':tabnext<cr>')

View File

@ -1,6 +1,7 @@
vim.o.number = true -- line numbers vim.o.number = true -- line numbers
vim.o.list = true -- show whitespace vim.o.list = true -- show whitespace
vim.o.colorcolumn = '80' -- line length marker (comma sep.) vim.o.colorcolumn = '80' -- line length marker (comma sep.)
vim.o.wrap = false
vim.o.expandtab = true -- indent using spaces vim.o.expandtab = true -- indent using spaces
vim.o.tabstop = 4 -- 1 tab = 4 spaces vim.o.tabstop = 4 -- 1 tab = 4 spaces