diff --git a/lua/core/lazy_load.lua b/lua/core/lazy_load.lua index 403532c..4ca00ae 100644 --- a/lua/core/lazy_load.lua +++ b/lua/core/lazy_load.lua @@ -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() diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 4fc2187..cca0b03 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -22,6 +22,13 @@ M.general = { }, ["d"] = { "\"_d", "delete without copying into clipboard" }, + + -- motion keybinds + ["zz", "move forward half page" }, + ["zz", "move backward half page" }, + + ["n"] = { "nzzzv" }, + ["N"] = { "Nzzzv" }, }, v = { diff --git a/lua/core/options.lua b/lua/core/options.lua index 05b4d62..f4ce937 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -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