aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/init.lua36
-rw-r--r--.config/nvim/lua/chadrc.lua7
-rw-r--r--.config/nvim/lua/configs/lspconfig.lua2
-rw-r--r--.config/nvim/lua/mappings.lua1
-rw-r--r--.config/nvim/lua/options.lua1
-rw-r--r--.config/nvim/lua/plugins.lua (renamed from .config/nvim/lua/plugins/init.lua)1
6 files changed, 27 insertions, 21 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 1152335b..7b9f5b1c 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -1,39 +1,39 @@
-vim.g.base46_cache = vim.fn.stdpath "data" .. "/nvchad/base46/"
+vim.g.base46_cache = vim.fn.stdpath("data") .. "/nvchad/base46/"
vim.g.mapleader = " "
-- bootstrap lazy and all plugins
-local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
- local repo = "https://github.com/folke/lazy.nvim.git"
- vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
+ local repo = "https://github.com/folke/lazy.nvim.git"
+ vim.fn.system({ "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(lazypath)
-local lazy_config = require "configs.lazy"
+local lazy_config = require("configs.lazy")
-- load plugins
require("lazy").setup({
- {
- "NvChad/NvChad",
- lazy = false,
- branch = "v2.5",
- import = "nvchad.plugins",
- config = function()
- require "options"
- end,
- },
-
- { import = "plugins" },
+ {
+ "NvChad/NvChad",
+ lazy = false,
+ branch = "v2.5",
+ import = "nvchad.plugins",
+ config = function()
+ require("nvchad.options")
+ end,
+ },
+
+ { require("plugins") },
}, lazy_config)
-- load theme
dofile(vim.g.base46_cache .. "defaults")
dofile(vim.g.base46_cache .. "statusline")
-require "nvchad.autocmds"
+require("nvchad.autocmds")
vim.schedule(function()
- require "mappings"
+ require("nvchad.mappings")
end)
diff --git a/.config/nvim/lua/chadrc.lua b/.config/nvim/lua/chadrc.lua
index d4551929..afd3a99e 100644
--- a/.config/nvim/lua/chadrc.lua
+++ b/.config/nvim/lua/chadrc.lua
@@ -4,6 +4,13 @@ local M = {}
M.ui = {
theme = "onenord",
theme_toggle = { "onenord", "onenord_light" },
+ changed_themes = {
+ onenord = {
+ base_16 = {
+ base00 = "#2E3440",
+ },
+ },
+ },
statusline = { theme = "vscode_colored" },
tabufline = { lazyload = true },
nvdash = { load_on_startup = true },
diff --git a/.config/nvim/lua/configs/lspconfig.lua b/.config/nvim/lua/configs/lspconfig.lua
index eaf7856f..0ec3ca99 100644
--- a/.config/nvim/lua/configs/lspconfig.lua
+++ b/.config/nvim/lua/configs/lspconfig.lua
@@ -3,7 +3,7 @@ local on_init = require("nvchad.configs.lspconfig").on_init
local capabilities = require("nvchad.configs.lspconfig").capabilities
local lspconfig = require("lspconfig")
-local servers = { "pylsp", "clangd", "cssls", "rust_analyzer", "marksman", "bash-language-server" }
+local servers = { "pylsp", "clangd", "cssls", "rust_analyzer", "marksman" }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup({
diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua
deleted file mode 100644
index 043f8043..00000000
--- a/.config/nvim/lua/mappings.lua
+++ /dev/null
@@ -1 +0,0 @@
-require("nvchad.mappings")
diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua
deleted file mode 100644
index 292dee1a..00000000
--- a/.config/nvim/lua/options.lua
+++ /dev/null
@@ -1 +0,0 @@
-require "nvchad.options"
diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins.lua
index babc8ae8..b473cc2d 100644
--- a/.config/nvim/lua/plugins/init.lua
+++ b/.config/nvim/lua/plugins.lua
@@ -48,6 +48,7 @@ return {
},
{
"lervag/vimtex",
+ lazy = false,
config = function()
require("configs.vimtex")
end,