diff options
Diffstat (limited to 'mirenn/home/files/dotfiles/.config/nvim/lua/plugins/nvim-treesitter.lua')
| -rw-r--r-- | mirenn/home/files/dotfiles/.config/nvim/lua/plugins/nvim-treesitter.lua | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/mirenn/home/files/dotfiles/.config/nvim/lua/plugins/nvim-treesitter.lua b/mirenn/home/files/dotfiles/.config/nvim/lua/plugins/nvim-treesitter.lua new file mode 100644 index 0000000..15d88b1 --- /dev/null +++ b/mirenn/home/files/dotfiles/.config/nvim/lua/plugins/nvim-treesitter.lua @@ -0,0 +1,54 @@ +local config = function() + require("nvim-treesitter.config").setup { + install_dir = vim.fn.stdpath('data') .. '/site', + auto_install = false, + sync_install = false, + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, + incremental_selection = { + enable = true + }, + indent = { + enable = true, + }, + autotag = { + enable = true, + }, + } + + local parsers = { + "c", + "lua", + "markdown", + "vim", + "vimdoc", + "query", + "regex", + "diff", + "cmake", + "meson", + "markdown_inline", + "bash", + "toml", + "latex", + "cpp", + "rust", + "haskell", + "nix", + "javascript", + "norg", + "fish", + "kdl", + } + -- require("nvim-treesitter").install(parsers) +end + +return { + "nvim-treesitter/nvim-treesitter", + lazy = false, + branch = "main", + -- build = ":TSUpdate", + config = config +} |
