🧠 Reorganize packaging
- Better organized and more efficient
This commit is contained in:
@@ -221,4 +221,4 @@ wk.add({
|
||||
})
|
||||
|
||||
-- ---------------------------- Spell Correction -------------------------------
|
||||
require("config/spellcheck")
|
||||
require("config.spellcheck")
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- ---------------------------------- LAZY -------------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.uv.fs_stat(lazypath) then
|
||||
-- stylua: ignore
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", lazypath
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
|
||||
-- --------------------------------- PLUGINS -----------------------------------
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
{ import = "ui" },
|
||||
{ import = "plugins" },
|
||||
{ import = "themes" },
|
||||
},
|
||||
defaults = { lazy = false, version = false },
|
||||
checker = { enabled = true },
|
||||
performance = {
|
||||
rtp = {
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
"netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -1,6 +1,8 @@
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- --------------------------------- NeoVide -----------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- Set GUI font
|
||||
vim.opt.guifont = "Iosevka:#e-subpixelantialias:h12"
|
||||
-- refresh rate and translucency
|
||||
vim.g.neovide_refresh_rate = 170
|
||||
vim.g.neovide_transparency = 0.85
|
||||
@@ -39,4 +41,5 @@ vim.cmd(":cnoremap <silent> <C-v> <C-r>+")
|
||||
vim.cmd(":cnoremap <silent> <C-c> <C-r>+")
|
||||
-- and in insert mode
|
||||
vim.cmd(":inoremap <silent> <C-v> <C-r>+")
|
||||
vim.cmd(":inoremap <silent> <C-c> <C-r>+")
|
||||
vim.cmd(":inoremap <silent> <C-c> <C-r>+")
|
||||
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- ---------------------------------- Style ------------------------------------
|
||||
-- -------------------------------- PRE-LOAD -----------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- Restore Leader Key
|
||||
if vim.fn.filereadable(vim.fn.stdpath("config") .. "/.leader") == 1 then
|
||||
-- Load Stored Leader Key
|
||||
vim.g.mapleader = vim.fn.readfile(vim.fn.stdpath("config") .. "/.leader")[1]
|
||||
else
|
||||
-- Set Default Leader Key
|
||||
vim.g.mapleader = " "
|
||||
end
|
||||
|
||||
-- Restore Colorscheme
|
||||
-- Restore Colorscheme to variable
|
||||
if vim.fn.filereadable(vim.fn.stdpath("config") .. "/.colorscheme") == 1 then
|
||||
-- Load the stored colorscheme
|
||||
STORED_THEME = vim.fn.readfile(vim.fn.stdpath("config") .. "/.colorscheme")[1]
|
||||
@@ -13,12 +21,3 @@ else
|
||||
end
|
||||
end
|
||||
|
||||
-- Apply the colorscheme
|
||||
vim.cmd.colorscheme(STORED_THEME or KITTY_THEME or "catppuccin-frappe")
|
||||
|
||||
-- Set GUI font
|
||||
vim.opt.guifont = "Iosevka:#e-subpixelantialias:h12"
|
||||
vim.g.have_nerd_font = true
|
||||
|
||||
-- Set Leader Key
|
||||
vim.g.mapleader = " "
|
||||
@@ -0,0 +1,20 @@
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- --------------------------------- OPTIONS -----------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
|
||||
-- ----------------------------------- LSP --------------------------------------
|
||||
vim.g.loaded_perl_provider = 0
|
||||
vim.g.lazyvim_python_lsp = "basedpyright"
|
||||
|
||||
-- ---------------------------------- STYLE ------------------------------------
|
||||
-- Apply the colorscheme
|
||||
vim.cmd.colorscheme(STORED_THEME or KITTY_THEME or "catppuccin-frappe")
|
||||
|
||||
-- ------------------------------- CLIENT APPS ---------------------------------
|
||||
if vim.g.neovide then
|
||||
-- ----------------------- Neovide -------------------------
|
||||
require("config.neovide")
|
||||
end
|
||||
|
||||
-- -------------------------------- KEYBINDS -----------------------------------
|
||||
require("config.keybinds")
|
||||
Reference in New Issue
Block a user