New answers tagged filetype
0
votes
Accepted
How to set all files under a folder to a specified filetype?
First of all, nvim-treesitter does not call :filetype off by default.
Secondly, :filetype on is enabled by default(:h nvim-defaults).
Finally, you can use vim.filetype.add (:h lua-filetype).
Community wiki
1
vote
How to set all files under a folder to a specified filetype?
If you are talking about autoload functions or just scripts, putting a zsh shebang or #compdef at the beginning should work fine for filetype detection. Otherwise, # vim: ft=zsh near the beginning or ...
- 23.3k
2
votes
Accepted
Do I need to set `:filetype on` myself in Neovim?
From :h filetype-overview
Overview: *:filetype-overview*
command detection plugin indent ~
:filetype on on unchanged unchanged
:...
- 19.2k
Top 50 recent answers are included
Related Tags
filetype × 204autocmd × 44
vimrc × 32
syntax-highlighting × 25
neovim × 17
indentation × 16
vimscript × 13
key-bindings × 11
plugin-system × 9
filetype-tex × 8
buffers × 6
folding × 6
ftplugin × 5
statusline × 4
filetype-markdown × 4
command-line × 3
gvim × 3
autocompletion × 3
functions × 3
formatting × 3
netrw × 3
comments × 3
plugin-ultisnips × 3
filetype-python × 3
binary-file × 3