Set the File Type for a File in Neovim
Via Config
Something like this in ~/.config/nvim/init.lua
vim.filetype.add({
extension = {
neoj = 'neoj'
}
})
There is also pattern and path matching which are thing to look into. Especially the pattern matches which would let you do things like have an .html
file that is a neoj
filetype. See: vim.filetype.add()
Manually
:set filetype=THE_TYPE
-- end of line --