Sorry if the question looks dumb, is it possible to set the config file of minimap in lua ?
I test the following, but the plugin is not found (the package command works wheel eg. Minimap
or MinimapClose
).
the error
plugin/minimap.lua:4: module 'minimap' not found
plugin file
local status, packer = pcall(require, 'packer')
if (not status) then
print('🔥 Packer is not installed')
return
end
vim.cmd [[packadd packer.nvim]]
packer.startup(
function(use)
... other plugins
use {'wfxr/minimap.vim', as = 'minimap'}
end
)
and my config file for minimap
local status, minimap = pcall(require, 'minimap')
if (not status) then return end
minimap.setup({
config = function ()
vim.g.minimap_width = 10
vim.g.minimap_auto_start = 1
vim.g.minimap_auto_start_win_enter = 1
end
})