I am using Neovim 8.0. previously I used nano, which had syntax highlighting for .conf files. But in neovim there is treesitter for popular languages. I don't know if there are any option for .conf file. So, is there any way to get syntax Highlighting for .conf file on neovim?
Asked
Active
Viewed 336 times
0
-
Hmm, for me `nvim` highlights a conf file without any additional configuration. Might be some distro defaults though *(I'm not on Ubuntu)*. Anyway, can you show what `~/.vimrc` file you're using or do you not have any? In the latter case, try creating a `~/.vimrc` file with this line `syntax on`, then test whether syntax highlight appeared – Hi-Angel Dec 18 '22 at 14:44
-
Which .conf? Apache? – muru Dec 18 '22 at 17:43