nvim: Make treesitter work nicer with Ruby end
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user