Nvim: optimize config, change colorscheme to kanagawa

This commit is contained in:
Robert Kmieć
2023-03-23 08:56:45 +01:00
parent f1e79ee50e
commit dd12fee249
9 changed files with 64 additions and 243 deletions

View File

@@ -99,3 +99,11 @@ map('n', '<C-w>z', "<cmd> WindowsMaximize<cr>")
map('n', '<C-w>_', "<cmd> WindowsMaximizeVertically<cr>")
map('n', '<C-w>|', "<cmd> WindowsMaximizeHorizontally<cr>")
map('n', '<C-w>=', "<cmd WindowsEqualize<cr>")
-- specs
-- You can even bind it to search jumping and more, example:
vim.api.nvim_set_keymap('n', 'n', 'n:lua require("specs").show_specs()<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', 'N', 'N:lua require("specs").show_specs()<CR>', { noremap = true, silent = true })
-- Or maybe you do a lot of screen-casts and want to call attention to a specific line of code:
vim.api.nvim_set_keymap('n', '<leader>v', ':lua require("specs").show_specs({width = 97, winhl = "Search", delay_ms = 610, inc_ms = 21})<CR>', { noremap = true, silent = true })