codewindow.nvim
codewindow.nvim copied to clipboard
help keybind
Hello I can't seem to remmap the toggle minimap button. (F5)
after many tries via codewindow.toggle_minimap() i couldn't map. config:
local status_ok, codewindow = pcall(require, "codewindow")
if not status_ok then
print("Module had an error")
end
vim.api.nvim_set_hl(0, 'CodewindowUnderline', {fg = '#2e3440'})
codewindow.setup({
use_treesitter = false,
show_cursor = false,
window_border = "none",
minimap_width = 10,
exclude_filetypes = { 'NvimTree', 'dashboard' }
})
codewindow.apply_default_keybinds()
thank you for your insights
I ended up remapping like this, in my config.lua:
{
'gorbit99/codewindow.nvim',
config = function()
local codewindow = require('codewindow')
vim.keymap.set('n', '<leader>mm', codewindow.toggle_minimap, { desc = 'toggle minimap' })
require('codewindow').setup {}
end
},