From 91a9eae36ccbc5fdc02c8cb60e34f3fe49501298 Mon Sep 17 00:00:00 2001 From: louie Date: Fri, 1 Jul 2022 15:22:52 -0700 Subject: Added (off by default) treesitter --- init.lua | 1 + lua/user/plugins.lua | 3 +++ lua/user/treesitter.lua | 13 +++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 lua/user/treesitter.lua diff --git a/init.lua b/init.lua index 984bb85..26e49c7 100644 --- a/init.lua +++ b/init.lua @@ -4,3 +4,4 @@ require "user.plugins" --plugin setup require "user.colorscheme" --set colorscheme require "user.cmp" --autocompletion require "user.lsp" --language server protocol +--require "user.treesitter" --treesitter diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 3584af0..1e0fbd9 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -31,4 +31,7 @@ return packer.startup(function(use) use "neovim/nvim-lspconfig" -- enable LSP use "williamboman/nvim-lsp-installer" -- simple to use language server installer + -- TreeSitter + use "nvim-treesitter/nvim-treesitter" --enable treesitter + end) diff --git a/lua/user/treesitter.lua b/lua/user/treesitter.lua new file mode 100644 index 0000000..0b5650a --- /dev/null +++ b/lua/user/treesitter.lua @@ -0,0 +1,13 @@ +local configs = require("nvim-treesitter.configs") +configs.setup { + ensure_installed = "", + sync_install = false, + ignore_install = { "" }, -- List of parsers to ignore installing + highlight = { + enable = true, -- false will disable the whole extension + disable = { "" }, -- list of language that will be disabled + additional_vim_regex_highlighting = true, + + }, + indent = { enable = false, }, +} -- cgit