From 3517a097894dfce553ee0699fcd0b11506ab5beb Mon Sep 17 00:00:00 2001 From: jessebot Date: Sat, 20 Jul 2024 12:15:22 +0200 Subject: [PATCH] add rust to treesitter as a default installed language --- .config/nvim/lua/user/tree-sitter.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/user/tree-sitter.lua b/.config/nvim/lua/user/tree-sitter.lua index f230eb1..83b0769 100644 --- a/.config/nvim/lua/user/tree-sitter.lua +++ b/.config/nvim/lua/user/tree-sitter.lua @@ -2,13 +2,14 @@ require'nvim-treesitter.configs'.setup { -- A list of parser names, or "all" ensure_installed = { "bash", + "css", "dockerfile", "hcl", + "html", "markdown", "markdown_inline", - "html", - "css", "python", + "rust", "terraform", "toml", "yaml", @@ -27,8 +28,8 @@ require'nvim-treesitter.configs'.setup { highlight = { enable = true, - -- NOTE: these're names of parsers and NOT the filetype. - -- e.g. disable highlighting for the `tex` filetype, you need to include + -- NOTE: these're names of parsers and NOT the filetype. + -- e.g. disable highlighting for the `tex` filetype, you need to include -- `latex` in this list as this is the name of the parser) -- list of language that will be disabled -- disable = { "toml"},