Replace vim's default hightlight with treesitter's
This commit is contained in:
parent
65e8420e47
commit
ff63e93336
1 changed files with 13 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||||
|
|
||||||
|
-- Tree sitter language parsers are installed automatically (through `auto_install`).
|
||||||
|
-- To update installed parsers use `:TSUpdate {language}`.
|
||||||
|
-- See https://github.com/nvim-treesitter/nvim-treesitter for more info.
|
||||||
local tree_sitter_config = require('nvim-treesitter.configs')
|
local tree_sitter_config = require('nvim-treesitter.configs')
|
||||||
|
|
||||||
tree_sitter_config.setup {
|
tree_sitter_config.setup {
|
||||||
|
|
@ -8,4 +11,14 @@ tree_sitter_config.setup {
|
||||||
'json', 'dockerfile', 'markdown',
|
'json', 'dockerfile', 'markdown',
|
||||||
},
|
},
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
},
|
||||||
|
indent = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
incremental_selection = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue