2024-02-15 11:13:37 +00:00
|
|
|
return {
|
2024-03-05 06:54:50 +00:00
|
|
|
-- auto-tag
|
|
|
|
{
|
|
|
|
"windwp/nvim-ts-autotag",
|
|
|
|
config = function()
|
|
|
|
require("nvim-ts-autotag").setup()
|
|
|
|
end,
|
|
|
|
},
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- auto-pairs
|
|
|
|
{
|
|
|
|
"windwp/nvim-autopairs",
|
|
|
|
config = function()
|
|
|
|
require("nvim-autopairs").setup {
|
|
|
|
enable_check_bracket_line = false,
|
|
|
|
ignored_next_char = "[%w%.]", -- will ignore alphanumeric and `.` symbol
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
},
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- auto completion
|
|
|
|
{
|
|
|
|
"hrsh7th/nvim-cmp",
|
|
|
|
config = function()
|
|
|
|
require "plugins/autocmp/config"()
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
{ "hrsh7th/cmp-nvim-lsp" },
|
|
|
|
{ "hrsh7th/cmp-buffer" },
|
|
|
|
{ "hrsh7th/cmp-path" },
|
|
|
|
{ "hrsh7th/cmp-cmdline" },
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
{ "L3MON4D3/LuaSnip" }, -- install the LuaSnip engine
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
{ "onsails/lspkind.nvim" }, -- icons in autocomplete source
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- todo comments
|
|
|
|
-- Preview
|
|
|
|
-- TODO: todo
|
|
|
|
-- FIX: fix
|
|
|
|
-- WARNING: warning
|
|
|
|
-- HACK: hack
|
|
|
|
-- NOTE: note
|
|
|
|
-- PERF: perf
|
|
|
|
-- TEST: test
|
|
|
|
--
|
|
|
|
{
|
|
|
|
"folke/todo-comments.nvim",
|
|
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
|
|
config = function()
|
|
|
|
require("todo-comments").setup {
|
|
|
|
keywords = {
|
|
|
|
FIX = {
|
|
|
|
icon = " ", -- icon used for the sign, and in search results
|
|
|
|
color = "error", -- can be a hex color, or a named color (see below)
|
|
|
|
alt = { "FIXME", "BUG", "FIXIT", "ISSUE" }, -- a set of other keywords that all map to this FIX keywords
|
|
|
|
-- signs = false, -- configure signs for some keywords individually
|
|
|
|
},
|
|
|
|
TODO = { icon = " ", color = "todo" },
|
|
|
|
HACK = { icon = " ", color = "warning" },
|
|
|
|
WARN = { icon = " ", color = "warning", alt = { "WARNING", "XXX" } },
|
|
|
|
PERF = { icon = "", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
|
|
|
|
NOTE = { icon = " ", color = "info", alt = { "INFO" } },
|
|
|
|
TEST = { icon = "⏲ ", color = "test", alt = { "TESTING", "PASSED", "FAILED" } },
|
|
|
|
},
|
|
|
|
colors = {
|
|
|
|
error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
|
|
|
|
warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" },
|
|
|
|
todo = { "DiagnosticOk", "#2563EB" },
|
|
|
|
info = { "DiagnosticInfo", "#10B981" },
|
|
|
|
default = { "Identifier", "#7C3AED" },
|
|
|
|
test = { "Identifier", "#FF00FF" },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
},
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- guess indent
|
|
|
|
{
|
|
|
|
"nmac427/guess-indent.nvim",
|
|
|
|
config = function()
|
|
|
|
require("guess-indent").setup {}
|
|
|
|
end,
|
|
|
|
},
|
2024-02-15 11:13:37 +00:00
|
|
|
}
|