-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fish parser isn't being automatically enable on .fish files #6
Comments
@poperigby Create a file called |
Oh, is there a reason that isn't mentioned in the setup guide? Seems a little bit strange it doesn't work out of the box. |
The reason most filetypes 'work out of the box' is that vim sources |
Oh I see. That probably should be in the setup guide then. Would it just take NeoVim adding fish to that file for it to work correctly? |
Yes. Relavant issue for vim vim/vim#820. Also there is a MR nvim-treesitter/nvim-treesitter#1533 that will give information on filetype detection. |
Thanks. Should there also be an issue for nvim? |
@poperigby I am also interested in the answer to this question, seems like nvim-treesitter itself could/should contain Vimscript files in its |
I think filetype detection should be done via plugin or configuration. Otherwise it would be a double effort on the |
@krnik the user experience would be much improved if all users had to do to get the benefits of a tree-sitter grammar for a language were to run People are writing tree-sitter grammars for ever-more-obscure languages, many of which are not detected by neovim by default - I have my own motivations here, writing such a grammar for TLA+. When it is finished and I integrate it with nvim-treesitter, I want to tell people all they have to do to use it is run |
Good point about the user experience 👍 I completely agree. |
Detection of fish files will be merged into nvim-treesitter with this PR nvim-treesitter/nvim-treesitter#1635 |
When I open a
.fish
file, the fish parser isn't automatically enabled. It's automatically enabled for all other file types, and I can set it manually with:set filetype=fish
.The text was updated successfully, but these errors were encountered: