aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2023-03-30 22:13:54 +0300
committerValentin Popov <valentin@popov.link>2023-03-30 22:13:54 +0300
commita315cff2d93c880e32da9a3fb90ca03c28340c4d (patch)
treeb930ae494ae72e1b7eeb171ee9283230d16c7218
parent731f056e31407e4302741b5b607bc793819defe9 (diff)
downloadnvim-config-a315cff2d93c880e32da9a3fb90ca03c28340c4d.tar.xz
nvim-config-a315cff2d93c880e32da9a3fb90ca03c28340c4d.zip
Настройка парсера файлов
Signed-off-by: Valentin Popov <valentin@popov.link>
-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 {