From a315cff2d93c880e32da9a3fb90ca03c28340c4d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 30 Mar 2023 23:13:54 +0400 Subject: Настройка парсера файлов MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Valentin Popov --- lua/plugins.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'lua') 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 { -- cgit v1.2.3