🧙 Implement Rootiest Module
- Major Update!!! - Implements a rootiest module - Consolidates much of the settings - Improves usability and efficiency - Faster Loading - Cleaner Structure - More keymaps and plugins now have conditional loading
This commit is contained in:
@@ -1,33 +1,6 @@
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- -------------------------------- AUTOCMDS -----------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
|
||||
-- -------------------------------- Commands -----------------------------------
|
||||
-- Make :Q close all of the buffers
|
||||
vim.api.nvim_create_user_command("Q", function()
|
||||
vim.cmd.qall()
|
||||
end, { force = true, desc = "Close all buffers" })
|
||||
|
||||
-- Yank line without leading/trailing whitespace
|
||||
vim.api.nvim_create_user_command("YankLine", function()
|
||||
-- Yank line without leading/trailing whitespace
|
||||
vim.api.nvim_feedkeys("_v$hy$", "n", true)
|
||||
end, { force = true, desc = "Yank line without leading whitespace" })
|
||||
|
||||
-- Restore Colorscheme
|
||||
vim.api.nvim_create_user_command("RestoreColorscheme", function()
|
||||
vim.cmd.colorscheme(
|
||||
STORED_THEME or KITTY_THEME or "catppuccin-frappe" or "tokyonight"
|
||||
)
|
||||
end, { force = true })
|
||||
|
||||
-- Load/start Remote
|
||||
vim.api.nvim_create_user_command("LoadRemote", function()
|
||||
require("remote-nvim").setup()
|
||||
vim.cmd("RemoteStart")
|
||||
end, { force = true, desc = "Load/start Remote" })
|
||||
|
||||
-- ------------------------------ Auto-Commands --------------------------------
|
||||
-- Autosave Colorscheme
|
||||
-- When the colorscheme changes, store the name in .colorscheme
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
|
||||
Reference in New Issue
Block a user