codewindow.nvim icon indicating copy to clipboard operation
codewindow.nvim copied to clipboard

help keybind

Open Manix80 opened this issue 2 years ago • 1 comments

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

Manix80 avatar Jan 23 '24 09:01 Manix80

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

AshwinSundar avatar Nov 07 '24 23:11 AshwinSundar