nvim: Make treesitter work nicer with Ruby end

This commit is contained in:
Michael Yockey
2025-02-13 10:07:44 -05:00
parent 862f9a1373
commit e4f5c0ffeb

View File

@@ -1,5 +1,6 @@
return {
'nvim-treesitter/nvim-treesitter',
dependencies = { 'RRethy/nvim-treesitter-endwise' },
build = ':TSUpdate',
config = function()
local configs = require("nvim-treesitter.configs")
@@ -8,7 +9,10 @@ return {
ensure_installed = { 'lua', 'ruby', 'javascript', 'typescript', 'c', 'css', 'scss', 'go', 'rust' },
sync_install = false,
highlight = { enable = true },
endwise = { enable = true },
indent = { enable = true },
})
vim.cmd('autocmd FileType ruby setlocal indentkeys-=.')
end,
}