🧙 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:
+2
-23
@@ -2,29 +2,8 @@
|
||||
-- --------------------------------- OPTIONS -----------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
|
||||
-- Set Default Leader Key
|
||||
vim.g.mapleader = " "
|
||||
|
||||
-- Correct missing settings files
|
||||
require("config.check-files")
|
||||
|
||||
-- Load Stored Leader Key
|
||||
vim.g.mapleader = vim.fn.readfile(vim.fn.stdpath("config") .. "/.leader")[1]
|
||||
|
||||
-- Load the stored colorscheme
|
||||
STORED_THEME = vim.fn.readfile(vim.fn.stdpath("config") .. "/.colorscheme")[1]
|
||||
|
||||
-- ----------------------------------- LSP --------------------------------------
|
||||
-- We don't need perl
|
||||
vim.g.loaded_perl_provider = 0
|
||||
-- Prefer basedpyright
|
||||
vim.g.lazyvim_python_lsp = "basedpyright"
|
||||
|
||||
-- ----------------------------------- FOLDS --------------------------------------
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||
vim.opt.foldlevelstart = 99 -- load buffers with folds open
|
||||
|
||||
-- ------------------------------- CLIENT APPS ---------------------------------
|
||||
if vim.g.neovide then
|
||||
-- ----------------------- Neovide -------------------------
|
||||
require("config.neovide")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user