diff options
author | Akshay <[email protected]> | 2022-01-30 05:57:25 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2022-01-30 05:57:25 +0000 |
commit | 47bb74f7ada1ac338c1509994cd7e837a59f1456 (patch) | |
tree | cfa32cdbcd8de076ff9d871e2208fdd43bafc67c /lua | |
parent | a35a4e7aae127b4ca3346b15ef6822f5f7583363 (diff) |
add ts playground, remove git from statusline
Diffstat (limited to 'lua')
-rw-r--r-- | lua/treesitter.lua | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/lua/treesitter.lua b/lua/treesitter.lua index 5027de5..344abf0 100644 --- a/lua/treesitter.lua +++ b/lua/treesitter.lua | |||
@@ -14,5 +14,28 @@ require'nvim-treesitter.configs'.setup { | |||
14 | }, | 14 | }, |
15 | indent = { | 15 | indent = { |
16 | enable = false | 16 | enable = false |
17 | } | 17 | }, |
18 | playground = { | ||
19 | enable = true, | ||
20 | disable = {}, | ||
21 | updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code | ||
22 | persist_queries = false, -- Whether the query persists across vim sessions | ||
23 | keybindings = { | ||
24 | toggle_query_editor = 'o', | ||
25 | toggle_hl_groups = 'i', | ||
26 | toggle_injected_languages = 't', | ||
27 | toggle_anonymous_nodes = 'a', | ||
28 | toggle_language_display = 'I', | ||
29 | focus_language = 'f', | ||
30 | unfocus_language = 'F', | ||
31 | update = 'R', | ||
32 | goto_node = '<cr>', | ||
33 | show_help = '?', | ||
34 | }, | ||
35 | }, | ||
36 | query_linter = { | ||
37 | enable = true, | ||
38 | use_virtual_text = true, | ||
39 | lint_events = {"BufWrite", "CursorHold"}, | ||
40 | }, | ||
18 | } | 41 | } |