motion keybinds

This commit is contained in:
krolyxon 2022-12-03 22:35:22 +05:30
parent f8b65ffd47
commit a81f0e580e
3 changed files with 8 additions and 2 deletions

View File

@ -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()

View File

@ -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 = {

View File

@ -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