-
Notifications
You must be signed in to change notification settings - Fork 27
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
fix: some fixes for use with Neovim #104
Conversation
Thanks for trying to make this better. However, I'm not sure I'm a fan of this PR since it makes it more complicated for people to understand what to do. I use nvim and don't have ftdetect or ftplugin at all so it makes me think that this is for some specific configuration that the average nvim user may not have. We're trying to keep it real general for the common user. Maybe there's a way to add this stuff separately "for the x type of install" and still keep the original one? 🤷🏻♂️ I'm fine with fixes though if there are problems with the script. Let's see what others say. |
There's nothing users need to do for this to work. Neovim sources the scripts automatically at the appropriate times (as opposed to sourcing everything at startup, regardless of whether a nushell file has been opened or not, which is what the current implementation does). |
I'm also wondering if this stuff needs to go in our integrations repo vs here with a readme linking to the integrations repo. |
That sounds reasonable to me. |
I'd accept it in integrations if
Then you could come back here and add a readme.md to the plugin folder that points there. should we move this one file implementation over there in yet another folder? |
I don't understand your suggestion. I don't use this parser myself, I'm just responding to a request to get it packaged. Come to think of it, I believe the proper way to go for filetype detection is to upstream the After that, the |
Turns out vim (and by extension neovim) has built-in filetype detection for nu. |
the commentstring patch has been backported to Neovim. Closing, as I can just exclude the My recommendation would be for you to remove the redundant filetype registration, to only set the commentstring if |
This PR adds the following fixes for use with Neovim:
plugin
script can only be sourced once (this is a best practise for plugins).nu
filetype to anftdetect/nu.lua
script, as is common practise for Neovim plugins.nu
files toftplugin/nu.lua
(so there's no need to create an autocommand).See also: Publish SemVer tags to luarocks.org? #103