feat(nvim): use different minimap plugin
This commit is contained in:
parent
53b101290d
commit
66aa37ff00
4 changed files with 17 additions and 14 deletions
|
@ -43,12 +43,6 @@ 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 on big enough window
|
||||
function! OpenTree() abort
|
||||
if &columns > 100
|
||||
|
@ -56,6 +50,7 @@ function! OpenTree() abort
|
|||
Neotree close
|
||||
Neotree show
|
||||
endif
|
||||
lua MiniMap.open()
|
||||
endfunction
|
||||
|
||||
autocmd VimEnter * call OpenTree()
|
||||
|
|
|
@ -98,9 +98,14 @@ end)
|
|||
|
||||
require("ibl").setup { indent = { highlight = highlight } }
|
||||
|
||||
-- Autoclose Minimap
|
||||
vim.api.nvim_create_autocmd('QuitPre', {
|
||||
pattern = '*',
|
||||
desc = 'Close minimap on exit',
|
||||
command = 'MinimapClose',
|
||||
})
|
||||
local map = require('mini.map')
|
||||
map.setup({
|
||||
integrations = {
|
||||
map.gen_integration.builtin_search(),
|
||||
map.gen_integration.gitsigns(),
|
||||
map.gen_integration.diagnostic(),
|
||||
},
|
||||
window = {
|
||||
width = 7,
|
||||
},
|
||||
})
|
||||
|
|
|
@ -129,7 +129,10 @@ in
|
|||
"sha256-e8gn4pJYALaQ6sGA66SFf8p6VLJBPxT/BimQhOd5eBs=")
|
||||
gitsigns-nvim
|
||||
lualine-nvim
|
||||
minimap-vim
|
||||
(plugin "echasnovski"
|
||||
"mini.map"
|
||||
"75b7ca9443e17c852b24055b32f74a880cf48053"
|
||||
"sha256-CoMc6yQXXAW1wzcD9eJGuM+kcOJghuwHjKrqEMxZBec=")
|
||||
|
||||
neo-tree-nvim
|
||||
|
||||
|
|
Loading…
Reference in a new issue