fix treesitter highlighting

This commit is contained in:
Maciej Lebiest 2023-02-12 20:31:58 +01:00
parent 2754473139
commit 3344392f1e
4 changed files with 10 additions and 7 deletions

View file

@ -13,7 +13,6 @@ end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
vim.opt.termguicolors = true vim.opt.termguicolors = true
-- load all plugins -- load all plugins
require("lazy-load") require("lazy-load")
-- load general config -- load general config

View file

@ -39,5 +39,6 @@ vim.opt.cursorline = true
vim.cmd [[ vim.cmd [[
highlight clear highlight clear
colorscheme dracula colorscheme dracula
TSEnable highlight
]] ]]

View file

@ -5,9 +5,14 @@ require("lazy").setup({
config = require('plugins.nvim-tree').config, config = require('plugins.nvim-tree').config,
keys = require('plugins.nvim-tree').keys }, keys = require('plugins.nvim-tree').keys },
{ 'nvim-treesitter/nvim-treesitter',
config = require('plugins.treesitter').config,
build = ':TSUpdate',
priority = 200},
-- neovim lsp plugins and depencencies -- neovim lsp plugins and depencencies
{ 'neovim/nvim-lspconfig', { 'neovim/nvim-lspconfig',
init = require('plugins.nvim-lspconfig').init }, init = require('plugins.nvim-lspconfig').init,
priority = 100},
{ 'hrsh7th/cmp-nvim-lsp' }, { 'hrsh7th/cmp-nvim-lsp' },
{ 'hrsh7th/cmp-buffer' }, { 'hrsh7th/cmp-buffer' },
{ 'hrsh7th/cmp-cmdline' }, { 'hrsh7th/cmp-cmdline' },
@ -71,7 +76,8 @@ require("lazy").setup({
-- themes -- themes
{ 'olimorris/onedarkpro.nvim' }, { 'olimorris/onedarkpro.nvim' },
{ 'ellisonleao/gruvbox.nvim' }, { 'ellisonleao/gruvbox.nvim' },
{ 'Mofiqul/dracula.nvim' }, { 'Mofiqul/dracula.nvim',
priority = 300},
{ 'vigoux/oak' }, { 'vigoux/oak' },
{ 'NLKNguyen/papercolor-theme' }, { 'NLKNguyen/papercolor-theme' },
{ 'bluz71/vim-moonfly-colors' }, { 'bluz71/vim-moonfly-colors' },
@ -94,9 +100,6 @@ require("lazy").setup({
}, },
{ 'BurntSushi/ripgrep' }, { 'BurntSushi/ripgrep' },
{ 'nvim-treesitter/nvim-treesitter',
config = require('plugins.treesitter').config,
build = ':TSUpdate' },
}, },
{ {

View file

@ -38,7 +38,7 @@ return {
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights. -- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages -- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = true, -- default=false additional_vim_regex_highlighting = false, -- default=false
}, },
} }
} }