mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Add treesitter
This commit is contained in:
parent
b9801dd0bc
commit
bc0a08394b
8
lua/config/treesitter.lua
Normal file
8
lua/config/treesitter.lua
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
require'nvim-treesitter.configs'.setup {
|
||||||
|
ensure_installed = {'python', 'cpp', 'lua', 'bash'},
|
||||||
|
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
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -32,6 +32,10 @@ require('packer').startup(
|
|||||||
-- auto-completion engine
|
-- auto-completion engine
|
||||||
use { 'hrsh7th/nvim-compe', event = 'InsertEnter *', config = [[require('config.compe')]] }
|
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
|
-- Python syntax highlighting and more
|
||||||
if (vim.g.is_mac == 1) or (vim.g.is_win == 1) then
|
if (vim.g.is_mac == 1) or (vim.g.is_win == 1) then
|
||||||
use {'numirias/semshi', ft = 'python', config = 'vim.cmd [[UpdateRemotePlugins]]'}
|
use {'numirias/semshi', ft = 'python', config = 'vim.cmd [[UpdateRemotePlugins]]'}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user