diff options
Diffstat (limited to '.config/nvim/lua/user/treesitter.lua')
-rw-r--r-- | .config/nvim/lua/user/treesitter.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/nvim/lua/user/treesitter.lua b/.config/nvim/lua/user/treesitter.lua new file mode 100644 index 0000000..b98311f --- /dev/null +++ b/.config/nvim/lua/user/treesitter.lua @@ -0,0 +1,20 @@ +--! tree-sitter configuration + + +local ts = require 'nvim-treesitter' +local tsc = require 'nvim-treesitter.configs' + +tsc.setup{ + ensure_installed = { "rust" }, + auto_install = true, + highlight = { + enable = true, + additional_vim_regex_highlighting = true, ---------------------- + }, + ident = { enable = true }, + rainbow = { + enable = true, + extended_mode = true, + max_file_lines = 1024, + }, +} |