diff options
author | Valentin Popov <valentin@popov.link> | 2023-03-30 22:13:54 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2023-03-30 22:13:54 +0300 |
commit | a315cff2d93c880e32da9a3fb90ca03c28340c4d (patch) | |
tree | b930ae494ae72e1b7eeb171ee9283230d16c7218 | |
parent | 731f056e31407e4302741b5b607bc793819defe9 (diff) | |
download | nvim-config-a315cff2d93c880e32da9a3fb90ca03c28340c4d.tar.xz nvim-config-a315cff2d93c880e32da9a3fb90ca03c28340c4d.zip |
Настройка парсера файлов
Signed-off-by: Valentin Popov <valentin@popov.link>
-rw-r--r-- | lua/plugins.lua | 15 |
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 { |