Coder Social home page Coder Social logo

Comments (11)

zeertzjq avatar zeertzjq commented on June 16, 2024

It seems that this only documented in the README of https://github.com/ziglang/zig.vim

from neovim.

flexagoon avatar flexagoon commented on June 16, 2024

@zeertzjq it is absolutely not clear that you have to look in a readme of some third-party repo for a solution to the issue. If this behavior is to be kept, it should at least be added as a :h file. Though I still think that it should not be on by default.

from neovim.

zeertzjq avatar zeertzjq commented on June 16, 2024

There seems to be some ongoing effort:

But it's not clear where it is going.

from neovim.

flexagoon avatar flexagoon commented on June 16, 2024

@zeertzjq the ziglang/zig.vim#51 issue was closed due to not enough interest, but since then, many people have commented on it saying that this behavior is annoying. I think even if this change won't be made in upstream zig.vim, it should be made in Neovim to have better defaults.

from neovim.

i3ima avatar i3ima commented on June 16, 2024

I also stumbled upon this behavior and I support opinion that this should not be on by default. In fact if you’ll look at zig_fmt_autosave in other Vim/Neovim distributions, dotfiles and so on — you’ll see that everybody is aware of this thing

from neovim.

clason avatar clason commented on June 16, 2024

We do not maintain these files; please contact the maintainer listed at the top of the file and propose the change; if there is no response, you may raise an issue at vim/vim directly. If they make the change, we will port it; otherwise not.

from neovim.

flexagoon avatar flexagoon commented on June 16, 2024

@clason why can't nvim change ftplugins independently of vim? Is that for compatibility reasons?

from neovim.

clason avatar clason commented on June 16, 2024

Yes (and to make sure that any improvements benefit both projects). This is an ironclad project policy.

from neovim.

gpanders avatar gpanders commented on June 16, 2024

I've opened a PR with Vim to change the default vim/vim#14820.

from neovim.

flexagoon avatar flexagoon commented on June 16, 2024

@gpanders perhaps you could continue the work in the existing PR?

vim/vim#13803

It is a full refactor of the zig ftplugin, so I think it'd be better to merge that, seems like the only thing it misses is documentation for one variable.

from neovim.

flexagoon avatar flexagoon commented on June 16, 2024

@clason vim merged the PR with the fix. Will it be downstreamed into nvim automatically?

from neovim.

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.