update for new nvim-treesitter api
This commit is contained in:
15
vimrc.lua
15
vimrc.lua
@@ -27,16 +27,11 @@ end
|
||||
|
||||
vim.cmd([[colorscheme gruvbox]])
|
||||
|
||||
require 'nvim-treesitter.configs'.setup {
|
||||
highlight = { enable = true, disable = {} },
|
||||
indent = { enable = false, disable = {} },
|
||||
rainbow = {
|
||||
enable = true,
|
||||
extended_mode = true,
|
||||
max_file_lines = 1000,
|
||||
colors = { '#ff0000', '#0051a0', '#ffa500', '#ffff00', '#008000', '#8003f2' }
|
||||
}
|
||||
}
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
callback = function(args)
|
||||
pcall(vim.treesitter.start, args.buf)
|
||||
end,
|
||||
})
|
||||
|
||||
-- Mappings.
|
||||
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
||||
|
||||
Reference in New Issue
Block a user