neovim (nvim) settings for associating *.jbuilder files to ruby language for LazyVim using filetype function.
To reach that we need to tune up nvim-treesitter plugin options.
| -- .config/nvim/lua/plugins/treesitter.lua | |
| return { | |
| { | |
| "nvim-treesitter/nvim-treesitter", | |
| opts = function(_, _) | |
| vim.filetype.add({ | |
| extension = { jbuilder = "ruby" }, | |
| }) | |
| end, | |
| }, | |
| } |