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.termguicolors = true
-- load all plugins
require("lazy-load")
-- load general config

View file

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

View file

@ -5,9 +5,14 @@ require("lazy").setup({
config = require('plugins.nvim-tree').config,
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/nvim-lspconfig',
init = require('plugins.nvim-lspconfig').init },
init = require('plugins.nvim-lspconfig').init,
priority = 100},
{ 'hrsh7th/cmp-nvim-lsp' },
{ 'hrsh7th/cmp-buffer' },
{ 'hrsh7th/cmp-cmdline' },
@ -71,7 +76,8 @@ require("lazy").setup({
-- themes
{ 'olimorris/onedarkpro.nvim' },
{ 'ellisonleao/gruvbox.nvim' },
{ 'Mofiqul/dracula.nvim' },
{ 'Mofiqul/dracula.nvim',
priority = 300},
{ 'vigoux/oak' },
{ 'NLKNguyen/papercolor-theme' },
{ 'bluz71/vim-moonfly-colors' },
@ -94,9 +100,6 @@ require("lazy").setup({
},
{ '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).
-- 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
additional_vim_regex_highlighting = true, -- default=false
additional_vim_regex_highlighting = false, -- default=false
},
}
}