diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-06-03 14:57:50 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-06-03 14:57:50 +0100 |
| commit | 06a4f3a8c25a1a7b9be9301f77a12d8c12397bb9 (patch) | |
| tree | 3360eabc42625120150054cf140723fd05be3754 | |
| parent | 08e7bed730d1be47ff1030308f72c69e52cffca1 (diff) | |
| parent | f671fc644de5edbeb4692df3b1b763754e22fb16 (diff) | |
Merge branch '08-treesitter' into vgg
| -rw-r--r-- | init.lua | 2 | ||||
| -rw-r--r-- | lua/user/plugins.lua | 8 | ||||
| -rw-r--r-- | lua/user/treesitter.lua | 27 |
3 files changed, 36 insertions, 1 deletions
@@ -5,4 +5,4 @@ require "user.colorscheme" require "user.cmp" require "user.lsp" require "user.telescope" - +require "user.treesitter" diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index a60772c..d16c0c4 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -72,6 +72,14 @@ return packer.startup(function(use) use "nvim-telescope/telescope.nvim" use 'nvim-telescope/telescope-media-files.nvim' + -- Treesitter + use { + "nvim-treesitter/nvim-treesitter", + run = ":TSUpdate", + } + use "p00f/nvim-ts-rainbow" + use "nvim-treesitter/playground" + -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins if PACKER_BOOTSTRAP then diff --git a/lua/user/treesitter.lua b/lua/user/treesitter.lua new file mode 100644 index 0000000..7d45bd4 --- /dev/null +++ b/lua/user/treesitter.lua @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + +local configs = require("nvim-treesitter.configs") +configs.setup { + ensure_installed = "maintained", + 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 = true, disable = { "yaml" } }, +} |
