refactor: code cleanup

pull/7/head
Micah Halter 2024-02-13 14:05:37 -05:00
parent 95082bdcfd
commit d5dc216288
No known key found for this signature in database
GPG Key ID: 4224A6EA9A8CAAA8
3 changed files with 69 additions and 68 deletions

View File

@ -14,7 +14,6 @@ if not lazy_loaded then
vim.cmd.quit() vim.cmd.quit()
end end
---@type LazyConfig
lazy.setup({ lazy.setup({
{ {
"AstroNvim/AstroNvim", "AstroNvim/AstroNvim",

View File

@ -1,68 +1,70 @@
if true then return {} end -- REMOVE THIS LINE TO ACTIVATE THIS FILE
-- You can simply override any internal plugins using Lazy, here are some example operations: -- You can simply override any internal plugins using Lazy, here are some example operations:
---@type LazySpec ---@type LazySpec
return { return {
-- customize alpha options -- customize alpha options
-- { {
-- "goolord/alpha-nvim", "goolord/alpha-nvim",
-- opts = function(_, opts) opts = function(_, opts)
-- -- customize the dashboard header -- customize the dashboard header
-- opts.section.header.val = { opts.section.header.val = {
-- " █████ ███████ ████████ ██████ ██████", " █████ ███████ ████████ ██████ ██████",
-- "██ ██ ██ ██ ██ ██ ██ ██", "██ ██ ██ ██ ██ ██ ██ ██",
-- "███████ ███████ ██ ██████ ██ ██", "███████ ███████ ██ ██████ ██ ██",
-- "██ ██ ██ ██ ██ ██ ██ ██", "██ ██ ██ ██ ██ ██ ██ ██",
-- "██ ██ ███████ ██ ██ ██ ██████", "██ ██ ███████ ██ ██ ██ ██████",
-- " ", " ",
-- " ███  ██ ██  ██ ██ ███  ███", " ███  ██ ██  ██ ██ ███  ███",
-- " ████  ██ ██  ██ ██ ████  ████", " ████  ██ ██  ██ ██ ████  ████",
-- " ██ ██  ██ ██  ██ ██ ██ ████ ██", " ██ ██  ██ ██  ██ ██ ██ ████ ██",
-- " ██  ██ ██  ██  ██  ██ ██  ██  ██", " ██  ██ ██  ██  ██  ██ ██  ██  ██",
-- " ██   ████   ████   ██ ██  ██", " ██   ████   ████   ██ ██  ██",
-- } }
-- return opts return opts
-- end, end,
-- }, },
-- You can disable default plugins as follows: -- You can disable default plugins as follows:
-- { "max397574/better-escape.nvim", enabled = false }, { "max397574/better-escape.nvim", enabled = false },
-- You can also easily customize additional setup of plugins that is outside of the plugin's setup call -- You can also easily customize additional setup of plugins that is outside of the plugin's setup call
-- { {
-- "L3MON4D3/LuaSnip", "L3MON4D3/LuaSnip",
-- config = function(plugin, opts) config = function(plugin, opts)
-- require "astronvim.plugins.configs.luasnip"(plugin, opts) -- include the default astronvim config that calls the setup call 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 -- add more custom luasnip configuration such as filetype extend or custom snippets
-- local luasnip = require "luasnip" local luasnip = require "luasnip"
-- luasnip.filetype_extend("javascript", { "javascriptreact" }) luasnip.filetype_extend("javascript", { "javascriptreact" })
-- end, end,
-- }, },
-- { {
-- "windwp/nvim-autopairs", "windwp/nvim-autopairs",
-- config = function(plugin, opts) config = function(plugin, opts)
-- require "astronvim.plugins.configs.nvim-autopairs"(plugin, opts) -- include the default astronvim config that calls the setup call 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 -- add more custom autopairs configuration such as custom rules
-- local npairs = require "nvim-autopairs" local npairs = require "nvim-autopairs"
-- local Rule = require "nvim-autopairs.rule" local Rule = require "nvim-autopairs.rule"
-- local cond = require "nvim-autopairs.conds" local cond = require "nvim-autopairs.conds"
-- npairs.add_rules( npairs.add_rules(
-- { {
-- Rule("$", "$", { "tex", "latex" }) Rule("$", "$", { "tex", "latex" })
-- -- don't add a pair if the next character is % -- don't add a pair if the next character is %
-- :with_pair(cond.not_after_regex "%%") :with_pair(cond.not_after_regex "%%")
-- -- don't add a pair if the previous character is xxx -- don't add a pair if the previous character is xxx
-- :with_pair( :with_pair(
-- cond.not_before_regex("xxx", 3) cond.not_before_regex("xxx", 3)
-- ) )
-- -- don't move right when repeat character -- don't move right when repeat character
-- :with_move(cond.none()) :with_move(cond.none())
-- -- don't delete if the next character is xx -- don't delete if the next character is xx
-- :with_del(cond.not_after_regex "xx") :with_del(cond.not_after_regex "xx")
-- -- disable adding a newline when you press <cr> -- disable adding a newline when you press <cr>
-- :with_cr(cond.none()), :with_cr(cond.none()),
-- }, },
-- -- disable for .vim files, but it work for another filetypes -- disable for .vim files, but it work for another filetypes
-- Rule("a", "a", "-vim") Rule("a", "a", "-vim")
-- ) )
-- end, end,
-- }, },
} }

View File

@ -1,12 +1,12 @@
if true then return {} end -- REMOVE THIS LINE TO ACTIVATE THIS FILE
-- You can also add new plugins here as well using the lazy syntax: -- You can also add new plugins here as well using the lazy syntax:
---@type LazySpec ---@type LazySpec
return { return {
-- "andweeb/presence.nvim", "andweeb/presence.nvim",
-- { {
-- "ray-x/lsp_signature.nvim", "ray-x/lsp_signature.nvim",
-- event = "BufRead", event = "BufRead",
-- config = function() config = function() require("lsp_signature").setup() end,
-- require("lsp_signature").setup() },
-- end,
-- },
} }