diff options
author | Joe <rrbo@proton.me> | 2023-09-01 17:07:55 +0200 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-09-01 17:07:55 +0200 |
commit | 3635045eeec150b18df7368f29b6ab554d962273 (patch) | |
tree | 0b1a0c9c4b657471204784d94e48d774d64ac863 /.config/nvim/sidebars.lua | |
parent | up (diff) | |
download | dotfiles-bsd-3635045eeec150b18df7368f29b6ab554d962273.tar.gz dotfiles-bsd-3635045eeec150b18df7368f29b6ab554d962273.tar.bz2 dotfiles-bsd-3635045eeec150b18df7368f29b6ab554d962273.tar.xz dotfiles-bsd-3635045eeec150b18df7368f29b6ab554d962273.tar.zst dotfiles-bsd-3635045eeec150b18df7368f29b6ab554d962273.zip |
hey
Diffstat (limited to '.config/nvim/sidebars.lua')
-rw-r--r-- | .config/nvim/sidebars.lua | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.config/nvim/sidebars.lua b/.config/nvim/sidebars.lua new file mode 100644 index 0000000..efdddb2 --- /dev/null +++ b/.config/nvim/sidebars.lua @@ -0,0 +1,42 @@ +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.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' + } + } + + + + + + + + + + + |