mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
12 lines
422 B
Lua
12 lines
422 B
Lua
-- Load Keybindings from VIM
|
|
local vim_mappings = os.getenv("HOME") .. "/.vim/key_maps.vim"
|
|
if vim.loop.fs_stat(vim_mappings) then
|
|
vim.cmd("source " .. vim_mappings)
|
|
end
|
|
|
|
-- 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 })
|
|
|
|
-- map <leader>j <Plug>(easymotion-s)
|