69 lines
1.3 KiB
Lua
69 lines
1.3 KiB
Lua
-- ╭────────────╮
|
|
-- │ Code utils │
|
|
-- ╰────────────╯
|
|
return {
|
|
-- │ Code parse │
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = function()
|
|
return require("plugins.opts.treesitter")
|
|
end,
|
|
config = function(_, opts)
|
|
require("nvim-treesitter.configs").setup(opts)
|
|
end,
|
|
},
|
|
|
|
{
|
|
"nvim-treesitter/nvim-treesitter-context",
|
|
opts = function()
|
|
return require("plugins.opts.treesitterContext")
|
|
end,
|
|
},
|
|
|
|
-- │ Completion │
|
|
{
|
|
"saghen/blink.cmp",
|
|
dependencies = { "rafamadriz/friendly-snippets" },
|
|
version = "1.*",
|
|
opts = function()
|
|
return require("plugins.opts.blink")
|
|
end,
|
|
opts_extend = { "sources.default" },
|
|
},
|
|
|
|
-- -- │ Auto close │
|
|
{
|
|
"windwp/nvim-ts-autotag",
|
|
config = function(_, opts)
|
|
require("nvim-ts-autotag").setup({
|
|
opts = {
|
|
enable_close = true,
|
|
enable_rename = true,
|
|
enable_close_on_slash = false,
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
|
|
{
|
|
"m4xshen/autoclose.nvim",
|
|
opts = function()
|
|
return require("plugins.opts.autoclose")
|
|
end,
|
|
},
|
|
|
|
-- │ Diagnostics │
|
|
{
|
|
"folke/trouble.nvim",
|
|
opts = { use_diagnostic_signs = true },
|
|
},
|
|
|
|
{
|
|
"folke/todo-comments.nvim",
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
opts = function()
|
|
return require("plugins.opts.todocomments")
|
|
end,
|
|
},
|
|
}
|