add treesitter with color customization

This commit is contained in:
Vladan Popovic 2023-07-25 18:25:24 +02:00
parent 4f4e77d2e8
commit f4fa48ed39
2 changed files with 22 additions and 0 deletions

View file

@ -61,6 +61,26 @@ local on_attach = function(client, bufnr)
end end
end end
require('nvim-treesitter.configs').setup {
ensure_installed = { "lua", "rust", "elm", "python", "toml" },
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting=false,
},
ident = {
enable = true,
},
rainbow = {
enable = true,
extended_mode = false,
max_file_lines = nil,
}
}
vim.api.nvim_set_hl(0, "@variable", { })
vim.api.nvim_set_hl(0, "@parameter", { })
local nvim_lsp = require('lspconfig') local nvim_lsp = require('lspconfig')
local capabilities = vim.lsp.protocol.make_client_capabilities() local capabilities = vim.lsp.protocol.make_client_capabilities()

View file

@ -9,6 +9,8 @@ return require('packer').startup(function()
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}} requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}
} }
use 'nvim-treesitter/nvim-treesitter'
use { use {
'nvim-tree/nvim-tree.lua', 'nvim-tree/nvim-tree.lua',
requires = 'nvim-tree/nvim-web-devicons', requires = 'nvim-tree/nvim-web-devicons',