motion keybinds
This commit is contained in:
parent
f8b65ffd47
commit
a81f0e580e
|
|
@ -65,7 +65,7 @@ M.gitsigns = function()
|
|||
autocmd({ "BufRead" }, {
|
||||
group = vim.api.nvim_create_augroup("GitSignsLazyLoad", { clear = true }),
|
||||
callback = function()
|
||||
vim.fn.system("git rev-parse " .. vim.fn.expand "%:p:h")
|
||||
vim.fn.system("git -C " .. vim.fn.expand "%:p:h" .. " rev-parse")
|
||||
if vim.v.shell_error == 0 then
|
||||
vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad"
|
||||
vim.schedule(function()
|
||||
|
|
|
|||
|
|
@ -22,6 +22,13 @@ M.general = {
|
|||
},
|
||||
|
||||
["<leader>d"] = { "\"_d", "delete without copying into clipboard" },
|
||||
|
||||
-- motion keybinds
|
||||
["<C-d"] = { "<C-d>zz", "move forward half page" },
|
||||
["<C-u"] = { "<C-u>zz", "move backward half page" },
|
||||
|
||||
["n"] = { "nzzzv" },
|
||||
["N"] = { "Nzzzv" },
|
||||
},
|
||||
|
||||
v = {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ if g.vim_version < 8 then
|
|||
end
|
||||
|
||||
opt.laststatus = 3 -- global statusline
|
||||
opt.title = true
|
||||
opt.cmdheight = 1
|
||||
opt.clipboard = "unnamedplus"
|
||||
opt.cul = true -- cursor line
|
||||
|
|
|
|||
Reference in New Issue