feat(nvim): use different minimap plugin

This commit is contained in:
matt1432 2023-10-22 04:14:22 -04:00
parent 53b101290d
commit 66aa37ff00
4 changed files with 17 additions and 14 deletions

View file

@ -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()

View file

@ -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,
},
})

View file

@ -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

View file

@ -7,7 +7,7 @@
border: 2px solid $contrastbg;
padding: 0px;
box-shadow: 0 0 4.5px 0 rgba(0, 0, 0, 0.6);
* {
font-size: 16px;
}