aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua15
1 files changed, 14 insertions, 1 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index af108c4..bc85876 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -38,7 +38,20 @@ return require('packer').startup(function(use)
}
-- Расширенная подсветка синтаксиса
- use 'nvim-treesitter/nvim-treesitter'
+ use {
+ 'nvim-treesitter/nvim-treesitter',
+ config = function()
+ require('nvim-treesitter.configs').setup {
+ ensure_installed = { 'javascript', 'lua', 'php', 'rust', 'typescript' },
+ sync_install = false,
+ auto_install = true,
+ highlight = {
+ enable = true,
+ additional_vim_regex_highlighting = false,
+ }
+ }
+ end,
+ }
-- Автоматическое закрытие скобок
use {