diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-14 21:58:45 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-14 21:58:45 +0100 |
commit | 8577c3b7cba714551d3537f3337ee2490bd20106 (patch) | |
tree | e881c2058f73ee5e67c68fcfac0df4b80c7de632 /.config/nvim/lua/treesitter/init.lua | |
parent | 7f9c2629c4eb416fcda906d6ad25457b7cff1e22 (diff) |
started moving to pure lua config
Diffstat (limited to '.config/nvim/lua/treesitter/init.lua')
-rw-r--r-- | .config/nvim/lua/treesitter/init.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/nvim/lua/treesitter/init.lua b/.config/nvim/lua/treesitter/init.lua new file mode 100644 index 0000000..d202a9f --- /dev/null +++ b/.config/nvim/lua/treesitter/init.lua @@ -0,0 +1,15 @@ +require'nvim-treesitter.configs'.setup { + ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages + highlight = { + enable = true, -- false will disable the whole extension + }, +} + +require "nvim-treesitter.configs".setup { + playground = { + enable = true, + disable = {}, + updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code + persist_queries = false -- Whether the query persists across vim sessions + } +} |