mirror of
https://github.com/StepanovPlaton/dotfiles.git
synced 2026-04-03 20:30:46 +04:00
04-01-2026
This commit is contained in:
@@ -1,31 +1,37 @@
|
||||
return {
|
||||
{
|
||||
-- Подсветка синтаксиса
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
dependencies = {
|
||||
"windwp/nvim-ts-autotag",
|
||||
},
|
||||
build = ":TSUpdate",
|
||||
config = function ()
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
configs.setup({
|
||||
ensure_installed = {
|
||||
"html", "markdown", "latex",
|
||||
"css", "scss", -- "less", not found
|
||||
"javascript", -- "jsx", not found
|
||||
"typescript", "tsx",
|
||||
"python", "lua",
|
||||
"vim", "vimdoc", "query",
|
||||
"bash",
|
||||
"c",
|
||||
"json", "yaml",
|
||||
},
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
incremental_selection = { enable = true },
|
||||
indent = { enable = true },
|
||||
autotag = { enable = true }
|
||||
})
|
||||
end
|
||||
}
|
||||
{
|
||||
-- Подсветка синтаксиса
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
dependencies = {
|
||||
"windwp/nvim-ts-autotag",
|
||||
"m4xshen/autoclose.nvim",
|
||||
},
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
configs.setup({
|
||||
auto_install = true,
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
incremental_selection = { enable = true },
|
||||
indent = { enable = true },
|
||||
-- autotag = { enable = true }
|
||||
disable = { "tex", "latex" },
|
||||
})
|
||||
require("nvim-ts-autotag").setup({
|
||||
-- Опциональные настройки
|
||||
enable_close = true,
|
||||
enable_rename = true,
|
||||
enable_close_on_slash = false,
|
||||
})
|
||||
require("autoclose").setup()
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||
pattern = "*.tpp",
|
||||
callback = function()
|
||||
vim.bo.filetype = "cpp"
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user