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
|
" remove highlight on words
|
||||||
nnoremap <silent> <esc> :noh<cr><esc>
|
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
|
" Auto open Neo-Tree on big enough window
|
||||||
function! OpenTree() abort
|
function! OpenTree() abort
|
||||||
if &columns > 100
|
if &columns > 100
|
||||||
|
@ -56,6 +50,7 @@ function! OpenTree() abort
|
||||||
Neotree close
|
Neotree close
|
||||||
Neotree show
|
Neotree show
|
||||||
endif
|
endif
|
||||||
|
lua MiniMap.open()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
autocmd VimEnter * call OpenTree()
|
autocmd VimEnter * call OpenTree()
|
||||||
|
|
|
@ -98,9 +98,14 @@ end)
|
||||||
|
|
||||||
require("ibl").setup { indent = { highlight = highlight } }
|
require("ibl").setup { indent = { highlight = highlight } }
|
||||||
|
|
||||||
-- Autoclose Minimap
|
local map = require('mini.map')
|
||||||
vim.api.nvim_create_autocmd('QuitPre', {
|
map.setup({
|
||||||
pattern = '*',
|
integrations = {
|
||||||
desc = 'Close minimap on exit',
|
map.gen_integration.builtin_search(),
|
||||||
command = 'MinimapClose',
|
map.gen_integration.gitsigns(),
|
||||||
|
map.gen_integration.diagnostic(),
|
||||||
|
},
|
||||||
|
window = {
|
||||||
|
width = 7,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -129,7 +129,10 @@ in
|
||||||
"sha256-e8gn4pJYALaQ6sGA66SFf8p6VLJBPxT/BimQhOd5eBs=")
|
"sha256-e8gn4pJYALaQ6sGA66SFf8p6VLJBPxT/BimQhOd5eBs=")
|
||||||
gitsigns-nvim
|
gitsigns-nvim
|
||||||
lualine-nvim
|
lualine-nvim
|
||||||
minimap-vim
|
(plugin "echasnovski"
|
||||||
|
"mini.map"
|
||||||
|
"75b7ca9443e17c852b24055b32f74a880cf48053"
|
||||||
|
"sha256-CoMc6yQXXAW1wzcD9eJGuM+kcOJghuwHjKrqEMxZBec=")
|
||||||
|
|
||||||
neo-tree-nvim
|
neo-tree-nvim
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue