diff options
author | Joe <rbo@gmx.us> | 2023-12-21 17:07:02 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-21 17:07:02 +0100 |
commit | 62946031981efcaa0183e72899cc03a001ec932f (patch) | |
tree | 944dc218c10961ab99b465641c5eeee6aa783733 /.config/nvim/lua/sidebars.lua | |
parent | up (diff) | |
download | dotfiles-bsd-62946031981efcaa0183e72899cc03a001ec932f.tar.gz dotfiles-bsd-62946031981efcaa0183e72899cc03a001ec932f.tar.bz2 dotfiles-bsd-62946031981efcaa0183e72899cc03a001ec932f.tar.xz dotfiles-bsd-62946031981efcaa0183e72899cc03a001ec932f.tar.zst dotfiles-bsd-62946031981efcaa0183e72899cc03a001ec932f.zip |
up
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/lua/sidebars.lua | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/.config/nvim/lua/sidebars.lua b/.config/nvim/lua/sidebars.lua deleted file mode 100644 index 796a21d..0000000 --- a/.config/nvim/lua/sidebars.lua +++ /dev/null @@ -1,39 +0,0 @@ -vim.g.NERDTreeWinPos = 'left' -vim.g.NERDTreeWinSize = 30 -vim.g.NERDTreeQuitOnOpen = 0 -vim.g.tagbar_left = 1 -vim.g.tagbar_width = 30 -vim.g.tagbar_autoclose = 0 -vim.g.tagbar_autofocus = 1 -vim.g.tagbar_sort = 0 -vim.g.undotree_SetFocusWhenToggle = 1 -vim.g.undotree_SplitWidth = 30 - -vim.cmd [[ -let g:sidebars = { - \ 'nerdtree': { - \ 'position': 'left', - \ 'check_win': {nr -> getwinvar(nr, '&filetype') ==# 'nerdtree'}, - \ 'open': 'NERDTree', - \ 'close': 'NERDTreeClose' - \ }, - \ 'tagbar': { - \ 'position': 'left', - \ 'check_win': {nr -> bufname(winbufnr(nr)) =~ '__Tagbar__'}, - \ 'open': 'TagbarOpen', - \ 'close': 'TagbarClose' - \ }, - \ 'undotree': { - \ 'position': 'left', - \ 'check_win': {nr -> getwinvar(nr, '&filetype') ==# 'undotree'}, - \ 'open': 'UndotreeShow', - \ 'close': 'UndotreeHide' - \ } - \ } -let g:startify_session_before_save = ['call sidebar#close_all()'] -]] - -vim.keymap.set('n', '<F2>', ':call sidebar#toggle("nerdtree")<CR>', { noremap = true, silent = true }) -vim.keymap.set('n', '<F4>', ':make<space>-j5<space>', { noremap = true, silent = false }) -vim.keymap.set('n', '<F3>', ':call sidebar#toggle("tagbar")<CR>', { noremap = true, silent = true }) -vim.keymap.set('n', '<F5>', vim.cmd.UndotreeToggle, { noremap = true, silent = true }) |