refactor nvim config

This commit is contained in:
Alexander Navarro 2023-04-19 18:14:25 -04:00
parent 8542426d53
commit f4bc3252ee
40 changed files with 798 additions and 1079 deletions

View file

@ -0,0 +1,9 @@
-- [[ Basic Keymaps ]]
-- Keymaps for better default experience
-- See `:help vim.keymap.set()`
vim.keymap.set({ "n", "v" }, "<Space>", "<Nop>", { silent = true })
-- Remap for dealing with word wrap
vim.keymap.set("n", "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
vim.keymap.set("n", "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })