diff options
| author | jdhao <jdhao@hotmail.com> | 2021-07-12 23:44:27 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-07-12 23:47:11 +0800 |
| commit | bc0a08394bff1b7881c0ad130893bc7661f18de4 (patch) | |
| tree | 81fcb82fb7c23d4bdb81b948758356f993be97b7 /lua/plugins.lua | |
| parent | b9801dd0bc45d06851d609d1d83052eef780663c (diff) | |
Add treesitter
Diffstat (limited to 'lua/plugins.lua')
| -rw-r--r-- | lua/plugins.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index f2482c1..95a0745 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -32,6 +32,10 @@ require('packer').startup( -- auto-completion engine use { 'hrsh7th/nvim-compe', event = 'InsertEnter *', config = [[require('config.compe')]] } + if (vim.g.is_mac > 0) or (vim.g.is_linux > 0) then + use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate', config = [[require('config.treesitter')]]} + end + -- Python syntax highlighting and more if (vim.g.is_mac == 1) or (vim.g.is_win == 1) then use {'numirias/semshi', ft = 'python', config = 'vim.cmd [[UpdateRemotePlugins]]'} |
