nyngwang / NeoZoom.lua

A simple usecase of floating window to help you focus.
MIT License
184 stars 15 forks source link

Documentation includes internal constants #29

Closed danielo515 closed 2 years ago

danielo515 commented 2 years ago

Hello, thank you for this plugin, I love the idea!

I blindly copied the docs configuration, trusting that the upper case variables were just available globals, but it seems that they are, in fact, plugin locals. I'm talking about the mapping options ones, for example NOREF_NOERR_TRUNC

nyngwang commented 2 years ago

Oops, that's something I forgot to change. These are just shorthands I used in my config:

local NOREF_NOERR_TRUNC = { noremap = true, silent = true, nowait = true }
local NOREF_NOERR = { noremap = true, silent = true }
local EXPR_NOREF_NOERR_TRUNC = { expr = true, noremap = true, silent = true, nowait = true }

I will update the README.md now!