fix treesitter highlighting
This commit is contained in:
parent
2754473139
commit
3344392f1e
4 changed files with 10 additions and 7 deletions
1
init.lua
1
init.lua
|
@ -13,7 +13,6 @@ end
|
|||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
-- load all plugins
|
||||
require("lazy-load")
|
||||
-- load general config
|
||||
|
|
|
@ -39,5 +39,6 @@ vim.opt.cursorline = true
|
|||
vim.cmd [[
|
||||
highlight clear
|
||||
colorscheme dracula
|
||||
TSEnable highlight
|
||||
]]
|
||||
|
||||
|
|
|
@ -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' },
|
||||
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue