2024-07-11 15:32:22 +05:30
|
|
|
---@type LazySpec
|
|
|
|
return {
|
|
|
|
|
2024-08-27 20:26:51 +05:30
|
|
|
"andweeb/presence.nvim",
|
|
|
|
{
|
|
|
|
"ray-x/lsp_signature.nvim",
|
|
|
|
event = "BufRead",
|
|
|
|
config = function() require("lsp_signature").setup() end,
|
|
|
|
},
|
2024-07-11 15:32:22 +05:30
|
|
|
|
2024-08-27 20:26:51 +05:30
|
|
|
{
|
|
|
|
"goolord/alpha-nvim",
|
|
|
|
enabled = false,
|
|
|
|
},
|
2024-07-11 15:32:22 +05:30
|
|
|
|
2024-09-16 08:59:44 +05:30
|
|
|
{
|
|
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
|
|
branch = "v3.x",
|
|
|
|
dependencies = {
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
"nvim-tree/nvim-web-devicons",
|
|
|
|
"MunifTanjim/nui.nvim",
|
|
|
|
"3rd/image.nvim",
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
vim.keymap.set(
|
|
|
|
"n",
|
|
|
|
"<leader>e",
|
|
|
|
":Neotree filesystem reveal float toggle<CR>",
|
|
|
|
{ noremap = true, silent = true }
|
|
|
|
)
|
|
|
|
end,
|
|
|
|
},
|
2024-07-11 15:32:22 +05:30
|
|
|
|
2024-08-27 20:26:51 +05:30
|
|
|
{
|
|
|
|
"L3MON4D3/LuaSnip",
|
|
|
|
config = function(plugin, opts)
|
|
|
|
require("astronvim.plugins.configs.luasnip")(plugin, opts) -- include the default astronvim config that calls the setup call
|
|
|
|
-- add more custom luasnip configuration such as filetype extend or custom snippets
|
|
|
|
local luasnip = require("luasnip")
|
|
|
|
luasnip.filetype_extend("javascript", { "javascriptreact" })
|
|
|
|
end,
|
|
|
|
},
|
2024-07-11 15:32:22 +05:30
|
|
|
|
2024-08-27 20:26:51 +05:30
|
|
|
{
|
|
|
|
"windwp/nvim-autopairs",
|
|
|
|
config = function(plugin, opts)
|
|
|
|
require("astronvim.plugins.configs.nvim-autopairs")(plugin, opts) -- include the default astronvim config that calls the setup call
|
|
|
|
-- add more custom autopairs configuration such as custom rules
|
|
|
|
local npairs = require("nvim-autopairs")
|
|
|
|
local Rule = require("nvim-autopairs.rule")
|
|
|
|
local cond = require("nvim-autopairs.conds")
|
|
|
|
npairs.add_rules(
|
|
|
|
{
|
|
|
|
Rule("$", "$", { "tex", "latex" })
|
|
|
|
-- don't add a pair if the next character is %
|
|
|
|
:with_pair(cond.not_after_regex("%%"))
|
|
|
|
-- don't add a pair if the previous character is xxx
|
|
|
|
:with_pair(
|
|
|
|
cond.not_before_regex("xxx", 3)
|
|
|
|
)
|
|
|
|
-- don't move right when repeat character
|
|
|
|
:with_move(cond.none())
|
|
|
|
-- don't delete if the next character is xx
|
|
|
|
:with_del(cond.not_after_regex("xx"))
|
|
|
|
-- disable adding a newline when you press <cr>
|
|
|
|
:with_cr(cond.none()),
|
|
|
|
},
|
|
|
|
-- disable for .vim files, but it work for another filetypes
|
|
|
|
Rule("a", "a", "-vim")
|
|
|
|
)
|
|
|
|
end,
|
|
|
|
},
|
2024-07-11 15:32:22 +05:30
|
|
|
}
|