To enable blade syntax highlighting in Neovim using the tree-sitter-blade plugin, you can follow these steps:
- Install the tree-sitter-blade plugin by adding it to your Neovim configuration. You can use a plugin manager like vim-plug or packer to install it. For example, if you're using vim-plug, add the following line to your
init.vimor.vimrcfile:
Plug 'EmranMR/tree-sitter-blade'
-
Run
:PlugInstallto install the plugin. -
Once the plugin is installed, you need to enable it in your Neovim configuration. Add the following lines to your
init.vimor.vimrcfile:
lua << EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = 'blade',
highlight = {
enable = true,
},
}
EOF
- Save the configuration file and restart Neovim.
After following these steps, Neovim should now highlight blade syntax using the tree-sitter-blade plugin.