Skip to content

Commit

Permalink
feat(minimap-vim): configure vim.g options in AstroCore
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Mar 1, 2024
1 parent 24addf3 commit 36c3ec2
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions lua/astrocommunity/split-and-window/minimap-vim/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
return {
"wfxr/minimap.vim",
event = "User AstroFile",
cmd = { "Minimap", "MinimapClose", "MinimapToggle", "MinimapRefresh", "MinimapUpdateHighlight" },
dependencies = {
{
Expand All @@ -11,30 +10,32 @@ return {
["<Leader>um"] = { "<CMD>MinimapToggle<CR>", desc = "Toggle minimap" },
},
},
options = {
g = {
minimap_width = 10,
minimap_auto_start = 1,
minimap_auto_start_win_enter = 1,
minimap_block_filetypes = {
"fugitive",
"nerdtree",
"tagbar",
"fzf",
"qf",
"netrw",
"NvimTree",
"lazy",
"mason",
"prompt",
"TelescopePrompt",
"noice",
"notify",
"neo-tree",
},
minimap_highlight_search = 1,
minimap_git_colors = 1,
},
},
},
},
},
init = function()
vim.g.minimap_width = 10
vim.g.minimap_auto_start = 1
vim.g.minimap_auto_start_win_enter = 1
vim.g.minimap_block_filetypes = {
"fugitive",
"nerdtree",
"tagbar",
"fzf",
"qf",
"netrw",
"NvimTree",
"lazy",
"mason",
"prompt",
"TelescopePrompt",
"noice",
"notify",
"neo-tree",
}
vim.g.minimap_highlight_search = 1
vim.g.minimap_git_colors = 1
end,
}

0 comments on commit 36c3ec2

Please sign in to comment.