2023-07-27 19:42:05 +03:00
|
|
|
|
-- You can simply override any internal plugins using Lazy, here are some example operations:
|
2023-01-14 22:16:59 +03:00
|
|
|
|
return {
|
2023-03-10 16:28:04 +03:00
|
|
|
|
-- customize alpha options
|
2023-07-27 19:42:05 +03:00
|
|
|
|
-- {
|
|
|
|
|
-- "goolord/alpha-nvim",
|
|
|
|
|
-- opts = function(_, opts)
|
|
|
|
|
-- -- customize the dashboard header
|
|
|
|
|
-- opts.section.header.val = {
|
|
|
|
|
-- " █████ ███████ ████████ ██████ ██████",
|
|
|
|
|
-- "██ ██ ██ ██ ██ ██ ██ ██",
|
|
|
|
|
-- "███████ ███████ ██ ██████ ██ ██",
|
|
|
|
|
-- "██ ██ ██ ██ ██ ██ ██ ██",
|
|
|
|
|
-- "██ ██ ███████ ██ ██ ██ ██████",
|
|
|
|
|
-- " ",
|
|
|
|
|
-- " ███ ██ ██ ██ ██ ███ ███",
|
|
|
|
|
-- " ████ ██ ██ ██ ██ ████ ████",
|
|
|
|
|
-- " ██ ██ ██ ██ ██ ██ ██ ████ ██",
|
|
|
|
|
-- " ██ ██ ██ ██ ██ ██ ██ ██ ██",
|
|
|
|
|
-- " ██ ████ ████ ██ ██ ██",
|
|
|
|
|
-- }
|
|
|
|
|
-- return opts
|
|
|
|
|
-- end,
|
|
|
|
|
-- },
|
|
|
|
|
|
2023-01-14 22:16:59 +03:00
|
|
|
|
-- You can disable default plugins as follows:
|
|
|
|
|
-- { "max397574/better-escape.nvim", enabled = false },
|
2023-07-27 19:42:05 +03:00
|
|
|
|
|
2023-01-14 22:16:59 +03:00
|
|
|
|
-- You can also easily customize additional setup of plugins that is outside of the plugin's setup call
|
|
|
|
|
-- {
|
|
|
|
|
-- "L3MON4D3/LuaSnip",
|
|
|
|
|
-- config = function(plugin, opts)
|
2024-01-04 06:35:14 +03:00
|
|
|
|
-- require "astronvim.plugins.configs.luasnip"(plugin, opts) -- include the default astronvim config that calls the setup call
|
2023-01-14 22:16:59 +03:00
|
|
|
|
-- -- add more custom luasnip configuration such as filetype extend or custom snippets
|
|
|
|
|
-- local luasnip = require "luasnip"
|
|
|
|
|
-- luasnip.filetype_extend("javascript", { "javascriptreact" })
|
|
|
|
|
-- end,
|
|
|
|
|
-- },
|
|
|
|
|
-- {
|
|
|
|
|
-- "windwp/nvim-autopairs",
|
|
|
|
|
-- config = function(plugin, opts)
|
2024-01-04 06:35:14 +03:00
|
|
|
|
-- require "astronvim.plugins.configs.nvim-autopairs"(plugin, opts) -- include the default astronvim config that calls the setup call
|
2023-01-14 22:16:59 +03:00
|
|
|
|
-- -- 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,
|
|
|
|
|
-- },
|
|
|
|
|
}
|