summaryrefslogtreecommitdiff
path: root/lua/nv-treesitter/init.lua
diff options
context:
space:
mode:
authorChris <[email protected]>2021-03-27 17:21:52 -0400
committerChris <[email protected]>2021-03-27 17:21:52 -0400
commit56798ec142a34fdcf090612de9ecbd07052f29b3 (patch)
treeab1af4799a9401f450dc4c07e2cca01362153c53 /lua/nv-treesitter/init.lua
parent2c5d18ebbcb86c84fc864ef5b4dce31483ddf761 (diff)
added more user options
Diffstat (limited to 'lua/nv-treesitter/init.lua')
-rw-r--r--lua/nv-treesitter/init.lua13
1 files changed, 6 insertions, 7 deletions
diff --git a/lua/nv-treesitter/init.lua b/lua/nv-treesitter/init.lua
index bf079631..372b6054 100644
--- a/lua/nv-treesitter/init.lua
+++ b/lua/nv-treesitter/init.lua
@@ -1,13 +1,11 @@
require'nvim-treesitter.configs'.setup {
ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
- -- TODO seems to be broken
- ignore_install = { "haskell" },
+ -- TODO seems to be broken
+ ignore_install = {"haskell"},
highlight = {
- enable = true, -- false will disable the whole extension
+ enable = true -- false will disable the whole extension
},
- indent = {
- enable = true
- },
+ indent = {enable = true},
playground = {
enable = true,
disable = {},
@@ -15,7 +13,8 @@ require'nvim-treesitter.configs'.setup {
persist_queries = false -- Whether the query persists across vim sessions
},
autotag = {enable = true},
- rainbow = {enable = true}
+ rainbow = {enable = true},
+ context_commentstring = {enable = true, config = {javascriptreact = {style_element = '{/*%s*/}'}}}
-- refactor = {highlight_definitions = {enable = true}}
}