-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bind_option函数bug? #31
Comments
Hi,thanks, I test it. |
如果直接给我个pr就更好了 |
在我本地测试 buffer local 的 relative number 和 wrap 不生效,我改成了 local function bind_option(options)
for k, v in pairs(options) do
if v == true then
vim.cmd('set ' .. k)
elseif v == false then
vim.cmd('set no' .. k)
else
vim.cmd('set ' .. k .. '=' .. v)
end
end
end 不知道是不是所有的 false 都可以通过 |
@ayamir 另外目前没有抽离出自定义的入口,我都是通过改动原文件修改的,这样同步github改动就很麻烦,希望作者添加一下个人自定义配置的 feature |
you can fork the origin ,then add branch,when change,you can merge,as i know,it is easy to do it. |
@1096015776 yes, we can do it by cloning a new local repo or creating a new branch. |
yes,i think it is better,I just give you a temp answer to solve that. |
这个设置 buffer local 变量的函数对于 false 的处理是有bug吧?
nvimdots/lua/core/options.lua
Lines 3 to 11 in cfaea09
The text was updated successfully, but these errors were encountered: