Giter VIP home page Giter VIP logo

Comments (8)

LLouice avatar LLouice commented on July 21, 2024 2

在我本地测试 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 都可以通过no前缀设置,如果不是的话就使用 vim.opt

from nvimdots.

ayamir avatar ayamir commented on July 21, 2024 1

如果直接给我个pr就更好了

from nvimdots.

1096015776 avatar 1096015776 commented on July 21, 2024

Hi,thanks, I test it.
yes, there all setting is true
false is not work
maybe use vim.opt setting can work.
if you want to change these so easy
let vim.opt setting like wrap
vim.opt.wrap=false.
maybe just author's default settings,the setting is ok.
because no opt ,almost the opt is false.

from nvimdots.

LLouice avatar LLouice commented on July 21, 2024

@ayamir 另外目前没有抽离出自定义的入口,我都是通过改动原文件修改的,这样同步github改动就很麻烦,希望作者添加一下个人自定义配置的 feature

from nvimdots.

1096015776 avatar 1096015776 commented on July 21, 2024

you can fork the origin ,then add branch,when change,you can merge,as i know,it is easy to do it.
if you just want to add plugin,you can mkdir the dir to the module , that you can no merge

from nvimdots.

LLouice avatar LLouice commented on July 21, 2024

@1096015776 yes, we can do it by cloning a new local repo or creating a new branch.
But i think it's bettter if we have a entry for private config.
Personal configuration is not in git and has a higher priority than default.

from nvimdots.

1096015776 avatar 1096015776 commented on July 21, 2024

yes,i think it is better,I just give you a temp answer to solve that.

from nvimdots.

ayamir avatar ayamir commented on July 21, 2024

@ayamir 另外目前没有抽离出自定义的入口,我都是通过改动原文件修改的,这样同步github改动就很麻烦,希望作者添加一下个人自定义配置的 feature

这个并不是我想做的,同时目前也没有精力去做,你想要的可能是lunarvim

from nvimdots.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.