🧙 Major Restructuring Update

- Plugins are now properly organized into separate folders.
- General configurations are also now organized by category into
folders.
- Now using lazyvim-defined plugins whenever possible for a more
consistent and clean experience.
- Duplicate manual plugin definitions were removed.
- Extensive testing has been performed to ensure config works on fresh
installs and a variety of systems.
- Further slimming of manual plugins and an updated dependency list is
forthcoming.
This commit is contained in:
2024-07-08 10:17:08 -04:00
parent 5c3dcaddd7
commit c0a3511384
34 changed files with 865 additions and 728 deletions
+11
View File
@@ -0,0 +1,11 @@
-- -----------------------------------------------------------------------------
-- -------------------------------- AUTO-CMDS ----------------------------------
-- -----------------------------------------------------------------------------
-- Chez-moi auto-edit-apply source
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
callback = function()
vim.schedule(require("chezmoi.commands.__edit").watch)
end,
})
+6
View File
@@ -0,0 +1,6 @@
-- -----------------------------------------------------------------------------
-- -------------------------------- DISABLED -----------------------------------
-- -----------------------------------------------------------------------------
-- No Perl provider
vim.g.loaded_perl_provider = 0
+46
View File
@@ -0,0 +1,46 @@
-- -----------------------------------------------------------------------------
-- -------------------------------- KEYBINDS -----------------------------------
-- -----------------------------------------------------------------------------
-- Make :Q close all of the buffers
vim.api.nvim_create_user_command("Q", function()
vim.cmd.bdelete()
vim.cmd.qall()
end, { force = true })
-- Panel Navigation
vim.api.nvim_set_keymap(
"n",
"<A-Left>",
[[<Cmd>wincmd h<CR>]],
{ noremap = true, desc = " Go to Window Left" }
)
vim.api.nvim_set_keymap(
"n",
"<A-Up>",
[[<Cmd>wincmd j<CR>]],
{ noremap = true, desc = " Go to Window Up" }
)
vim.api.nvim_set_keymap(
"n",
"<A-Down>",
[[<Cmd>wincmd k<CR>]],
{ noremap = true, desc = " Go to Window Down" }
)
vim.api.nvim_set_keymap(
"n",
"<A-Right>",
[[<Cmd>wincmd l<CR>]],
{ noremap = true, desc = " Go to Window Right" }
)
-- Terminal navigation
function _G.set_terminal_keymaps()
local opts = { buffer = 0 }
vim.keymap.set("t", "<esc>", [[<C-\><C-n>]], opts)
vim.keymap.set("t", "jk", [[<C-\><C-n>]], opts)
vim.keymap.set("t", "<C-h>", [[<Cmd>wincmd h<CR>]], opts)
vim.keymap.set("t", "<C-j>", [[<Cmd>wincmd j<CR>]], opts)
vim.keymap.set("t", "<C-k>", [[<Cmd>wincmd k<CR>]], opts)
vim.keymap.set("t", "<C-l>", [[<Cmd>wincmd l<CR>]], opts)
vim.keymap.set("t", "<C-w>", [[<C-\><C-n><C-w>]], opts)
end
+17
View File
@@ -0,0 +1,17 @@
-- -----------------------------------------------------------------------------
-- ---------------------------------- Kitty ------------------------------------
-- -----------------------------------------------------------------------------
if not vim.env.SSH_TTY then
-- Transparency
vim.cmd(":TransparentEnable")
else
-- No Transparency
vim.cmd(":TransparentDisable")
end
-- Kitty Navigator
vim.cmd("autocmd! TermOpen term://* lua set_terminal_keymaps()")
vim.cmd("let g:kitty_navigator_no_mappings = 1")
vim.cmd(":nnoremap <silent> {Left-Mapping} :KittyNavigateLeft<cr>")
vim.cmd(":nnoremap <silent> {Down-Mapping} :KittyNavigateDown<cr>")
vim.cmd(":nnoremap <silent> {Up-Mapping} :KittyNavigateUp<cr>")
vim.cmd(":nnoremap <silent> {Right-Mapping} :KittyNavigateRight<cr>")
+44
View File
@@ -0,0 +1,44 @@
-- -----------------------------------------------------------------------------
-- --------------------------------- NeoVide -----------------------------------
-- -----------------------------------------------------------------------------
-- refresh rate and translucency
vim.g.neovide_refresh_rate = 170
vim.g.neovide_transparency = 0.85
vim.g.neovide_window_blurred = true
-- Neovide has its own transparency
vim.cmd(":TransparentDisable")
-- cursor fx
vim.g.neovide_cursor_vfx_mode = "railgun"
vim.g.neovide_cursor_smooth_blink = true
vim.g.neovide_cursor_vfx_particle_density = 16.0
vim.g.neovide_cursor_vfx_particle_lifetime = 1.6
vim.g.neovide_cursor_vfx_particle_phase = 1.2
vim.g.neovide_cursor_vfx_particle_curl = 1.0
vim.g.neovide_cursor_animation_length = 0.13
vim.g.neovide_cursor_trail_size = 0.8
-- floating shadow
vim.g.neovide_floating_shadow = true
vim.g.neovide_floating_z_height = 10
vim.g.neovide_light_angle_degrees = 45
vim.g.neovide_light_radius = 5
-- scaling
vim.g.neovide_scale_factor = 1.0
-- padding
vim.g.neovide_padding_top = 0
vim.g.neovide_padding_bottom = 0
vim.g.neovide_padding_right = 0
vim.g.neovide_padding_left = 0
-- Simulate kitty copy-and-paste from system clipboard
-- in normal mode
vim.cmd(":nnoremap <silent> <C-v> :r !xsel -b<cr>")
vim.cmd(":nnoremap <silent> <C-c> :w !xsel -i -b<cr>")
-- and in visual mode
vim.cmd(":vnoremap <silent> <C-v> :r !xsel -b<cr>")
vim.cmd(":vnoremap <silent> <C-c> :w !xsel -i -b<cr>")
-- and in command mode
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>+")
+28
View File
@@ -0,0 +1,28 @@
-- -----------------------------------------------------------------------------
-- ---------------------------------- Style ------------------------------------
-- -----------------------------------------------------------------------------
-- Apply the default colorscheme
if os.getenv("KITTY_THEME") then
local kitty_theme = os.getenv("KITTY_THEME")
-- Set the colorscheme palette
if kitty_theme:find("catppuccin") then
THEMEPALETTE = require("catppuccin.palettes").get_palette(kitty_theme:sub(12))
else
if vim.o.background == "dark" then
THEMEPALETTE = require("catppuccin.palettes").get_palette("mocha")
else
THEMEPALETTE = require("catppuccin.palettes").get_palette("latte")
end
end
else
if vim.o.background == "dark" then
THEMEPALETTE = require("catppuccin.palettes").get_palette("mocha")
else
THEMEPALETTE = require("catppuccin.palettes").get_palette("latte")
end
end
vim.cmd.colorscheme(kitty_theme or "catppuccin-frappe")
-- Set GUI font
vim.opt.guifont = "MonaspiceKr Nerd Font Mono:#e-subpixelantialias:h13"
vim.g.have_nerd_font = true