feat(neovim): autoclose minimap and don't focus on tree at launch

This commit is contained in:
matt1432 2023-09-30 19:51:53 -04:00
parent 51b0918685
commit 8f9bb12037
2 changed files with 12 additions and 0 deletions

View file

@ -30,9 +30,14 @@ let g:coc_snippet_next = '<tab>'
" support scss @
autocmd FileType scss setl iskeyword+=@-@
" remove highlight on words
nnoremap <silent> <esc> :noh<cr><esc>
" Minimap config
let g:minimap_width = 6
let g:minimap_auto_start = 1
let g:minimap_auto_start_win_enter = 1
let g:minimap_git_colors = 1
" Auto open Neo-Tree
autocmd VimEnter * Neotree show

View file

@ -97,3 +97,10 @@ hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
end)
require("ibl").setup { indent = { highlight = highlight } }
-- Autoclose Minimap
vim.api.nvim_create_autocmd('QuitPre', {
pattern = '*',
desc = 'Close minimap on exit',
command = 'MinimapClose',
})