feat: debloat

This commit is contained in:
2024-10-31 17:53:54 +01:00
parent 28a349bb6f
commit 93b501048d
12 changed files with 124 additions and 268 deletions
+46 -52
View File
@@ -3,12 +3,10 @@ vim.loader.enable()
local utils = require("utils")
local files = {
"env",
"globals",
"options",
"autocommands",
"mappings",
"user_commands",
}
for _, file in ipairs(files) do
@@ -21,58 +19,54 @@ for _, file in ipairs(files) do
end
end
if vim.g.vscode then
-- VSCode extension
else
local ok, err = pcall(require, "bootstrap")
if not ok then
utils.err("Error during bootstrap")
utils.err(err:gsub("\t", " "))
return
end
local ok, err = pcall(require, "bootstrap")
if not ok then
utils.err("Error during bootstrap")
utils.err(err:gsub("\t", " "))
return
end
---@type LazyPluginSpec[]
local plugins = {
{
"neovim/nvim-lspconfig",
config = require("lsp").setup,
},
{ import = "plugins" },
}
---@type LazyPluginSpec[]
local plugins = {
{
"neovim/nvim-lspconfig",
config = require("lsp").setup,
},
{ import = "plugins" },
}
---@type LazyConfig
local opts = {
install = {
colorscheme = { "moonfly" },
},
ui = {
icons = {
cmd = "",
config = "",
event = "",
favorite = "",
ft = "",
init = "",
import = "",
keys = "",
lazy = "",
loaded = "",
not_loaded = "",
plugin = "",
runtime = "",
require = " ",
source = "",
start = "",
task = "",
list = {
"",
"",
"",
"",
},
---@type LazyConfig
local opts = {
install = {
colorscheme = { "moonfly" },
},
ui = {
icons = {
cmd = "",
config = "",
event = "",
favorite = "",
ft = "",
init = "",
import = "",
keys = "",
lazy = "",
loaded = "",
not_loaded = "",
plugin = "",
runtime = "",
require = " ",
source = "",
start = "",
task = "",
list = {
"",
"",
"",
"",
},
},
}
},
}
require("lazy").setup(plugins, opts)
end
require("lazy").setup(plugins, opts)