aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/nvim
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-06-01 13:27:50 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-06-01 13:28:25 +0300
commitcca0488895f330ffb026535b76b4c01ba52eb2ea (patch)
treec890433ee6048cada15408e8cd16f46642d6b57e /dotfiles/.config/nvim
parentc8d8be17ee9aca38c22fe26cd68f490b0aba168e (diff)
downloadvimrice-cca0488895f330ffb026535b76b4c01ba52eb2ea.tar.gz
vimrice-cca0488895f330ffb026535b76b4c01ba52eb2ea.zip
nmap: open all folds in current scope recursively
A bit of hack, but it works.
Diffstat (limited to 'dotfiles/.config/nvim')
-rw-r--r--dotfiles/.config/nvim/init.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index d7ec06b..38cbc2f 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -246,6 +246,10 @@ call plug#end()
map <leader>d :r!date +"\%Y-\%m-\%dT\%H:\%M:\%S"<CR>kJ
map <leader>в :r!date +"\%Y-\%m-\%dT\%H:\%M:\%S"<CR>kJ
+" Hack to open all folds in current scope recursively
+ nmap <leader>z zCzO
+ nmap <leader>я zCzO
+
" LSP
if has('nvim-0.6')
set omnifunc=v:lua.vim.lsp.omnifunc