📁 files(nvim): convert lazyvim modified plugin files to extra modules

This commit is contained in:
Sergio Laín 2024-03-10 01:20:01 +01:00
parent aaa5a22934
commit e98d41f3e3
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
19 changed files with 22 additions and 14 deletions

View file

@ -41,6 +41,22 @@
"plugins.extras.lang.web.html-css", "plugins.extras.lang.web.html-css",
"plugins.extras.lang.web.typescript-extended", "plugins.extras.lang.web.typescript-extended",
"plugins.extras.lang.web.vue", "plugins.extras.lang.web.vue",
"plugins.extras.lazyvim.bufferline",
"plugins.extras.lazyvim.cmp",
"plugins.extras.lazyvim.dashboard",
"plugins.extras.lazyvim.flash",
"plugins.extras.lazyvim.gitsigns",
"plugins.extras.lazyvim.lspconfig",
"plugins.extras.lazyvim.lualine",
"plugins.extras.lazyvim.luasnip",
"plugins.extras.lazyvim.mason",
"plugins.extras.lazyvim.neo-tree",
"plugins.extras.lazyvim.noice",
"plugins.extras.lazyvim.nvim-notify",
"plugins.extras.lazyvim.persistence",
"plugins.extras.lazyvim.spectre",
"plugins.extras.lazyvim.telescope",
"plugins.extras.lazyvim.which-key",
"plugins.extras.linting.eslint-extended", "plugins.extras.linting.eslint-extended",
"plugins.extras.lsp.actions-preview", "plugins.extras.lsp.actions-preview",
"plugins.extras.lsp.file-operations", "plugins.extras.lsp.file-operations",

View file

@ -9,17 +9,16 @@ vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazy").setup({ require("lazy").setup({
spec = { spec = {
-- add LazyVim and import its plugins {
{ "LazyVim/LazyVim", import = "lazyvim.plugins" }, "LazyVim/LazyVim",
import = "lazyvim.plugins",
opts = { colorscheme = "catppuccin" },
},
{ import = "plugins" }, { import = "plugins" },
{ import = "lazyvim.plugins.extras.lazyrc" }, { import = "lazyvim.plugins.extras.lazyrc" },
}, },
defaults = { defaults = {
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
lazy = true, lazy = true,
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
-- have outdated releases, which may break your Neovim install.
version = false, -- always use the latest git commit version = false, -- always use the latest git commit
-- version = "*", -- try installing the latest stable version for plugins that support semver -- version = "*", -- try installing the latest stable version for plugins that support semver
}, },

View file

@ -1,6 +0,0 @@
return {
"LazyVim/LazyVim",
opts = {
colorscheme = "catppuccin",
},
}

View file

@ -5,7 +5,7 @@ return {
"folke/persistence.nvim", "folke/persistence.nvim",
keys = { keys = {
{ {
"<leader>qs", "<leader>qS",
function() function()
p.save() p.save()
vim.notify("Session saved", vim.log.levels.INFO, { title = "Persistence" }) vim.notify("Session saved", vim.log.levels.INFO, { title = "Persistence" })
@ -13,7 +13,6 @@ return {
desc = "Save Session", desc = "Save Session",
}, },
-- stylua: ignore start -- stylua: ignore start
{ "<leader>qr", function() require("persistence").load({ last = true }) end, desc = "Restore Last Session" },
{ "<leader>qt", { "<leader>qt",
function() function()
if isActive then if isActive then