DebugWin helps to visualize messages or Lua results in a separate window.
To use this plugin, you need :
- to have Neovim
0.8+version installed ; - to add
woosaaahh/debugwin.nvimin your plugin manager configuration.
Here are some plugin managers :
- vim-plug ;
- packer.nvim ;
- paq-nvim.
debugwin.show()will open the window and display:messages;debugwin.show(variable)will open the window and display the content ofvariable;debugwin.focus()will focus theDebugWinwindow.debugwin.close()will close theDebugWinwindow.
No configuration needed, only keymaps :
local debugwin = require("debugwin")
vim.keymap.set({ "", "i" }, "<F8>", debugwin.show) -- to display `:messages` in a window
vim.keymap.set({ "", "i" }, "<F9>", debugwin.focus)
vim.keymap.set({ "", "i" }, "<F10>", debugwin.close)