mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-30 23:54:50 +02:00
refactoring whichkey
This commit is contained in:
parent
e02c7c5abb
commit
a247d69c82
7 changed files with 90 additions and 80 deletions
|
@ -76,10 +76,10 @@ lv_utils.define_augroups {
|
|||
-- will cause split windows to be resized evenly if main window is resized
|
||||
{ "VimResized ", "*", "wincmd =" },
|
||||
},
|
||||
_fterm_lazygit = {
|
||||
-- will cause esc key to exit lazy git
|
||||
{"TermEnter", "*", "call LazyGitNativation()"}
|
||||
},
|
||||
-- _fterm_lazygit = {
|
||||
-- -- will cause esc key to exit lazy git
|
||||
-- {"TermEnter", "*", "call LazyGitNativation()"}
|
||||
-- },
|
||||
-- _mode_switching = {
|
||||
-- -- will switch between absolute and relative line numbers depending on mode
|
||||
-- {'InsertEnter', '*', 'if &relativenumber | let g:ms_relativenumberoff = 1 | setlocal number norelativenumber | endif'},
|
||||
|
@ -89,7 +89,7 @@ lv_utils.define_augroups {
|
|||
-- },
|
||||
}
|
||||
|
||||
vim.cmd([[
|
||||
vim.cmd [[
|
||||
function! QuickFixToggle()
|
||||
if empty(filter(getwininfo(), 'v:val.quickfix'))
|
||||
copen
|
||||
|
@ -98,7 +98,6 @@ vim.cmd([[
|
|||
endif
|
||||
endfunction
|
||||
]]
|
||||
)
|
||||
|
||||
return lv_utils
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue