glacambre / firenvim

Embed Neovim in Chrome, Firefox & others.
GNU General Public License v3.0
4.68k stars 144 forks source link

How to disable mouse with lua script only when started by firenvim? #1503

Closed ysl2 closed 1 year ago

ysl2 commented 1 year ago

How to disable mouse with lua script only when started by firenvim?

justinmk commented 1 year ago
if vim.fn.exists('g:started_by_firenvim') == 1 then
  vim.cmd([[set mouse=]])
end
glacambre commented 1 year ago

You're in luck, I translated the VimScript examples of the readme to Lua minutes ago: https://github.com/glacambre/firenvim#building-a-firenvim-specific-config . Let me know if that's enough to help you do what you want to do :)