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]])
|
vim.cmd([[colorscheme gruvbox]])
|
||||||
|
|
||||||
require 'nvim-treesitter.configs'.setup {
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
highlight = { enable = true, disable = {} },
|
callback = function(args)
|
||||||
indent = { enable = false, disable = {} },
|
pcall(vim.treesitter.start, args.buf)
|
||||||
rainbow = {
|
end,
|
||||||
enable = true,
|
})
|
||||||
extended_mode = true,
|
|
||||||
max_file_lines = 1000,
|
|
||||||
colors = { '#ff0000', '#0051a0', '#ffa500', '#ffff00', '#008000', '#8003f2' }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Mappings.
|
-- Mappings.
|
||||||
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
||||||
|
|||||||
Reference in New Issue
Block a user