diff --git a/init.lua b/init.lua index ececd85..58a90da 100644 --- a/init.lua +++ b/init.lua @@ -2,14 +2,8 @@ require "pluginList" require "options" -local g = vim.g - -g.mapleader = " " -g.auto_save = false - -- colorscheme related stuff - -g.nvchad_theme = "onedark" +vim.g.nvchad_theme = "onedark" local base16 = require "base16" base16(base16.themes["onedark"], true) diff --git a/lua/options.lua b/lua/options.lua index c83e6ae..3d2d2dd 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -1,4 +1,5 @@ local opt = vim.opt +local g = vim.g opt.ruler = false opt.hidden = true @@ -30,17 +31,20 @@ opt.expandtab = true opt.shiftwidth = 2 opt.smartindent = true +g.mapleader = " " +g.auto_save = false + -- disable builtin vim plugins -vim.g.loaded_gzip = 0 -vim.g.loaded_tar = 0 -vim.g.loaded_tarPlugin = 0 -vim.g.loaded_zipPlugin = 0 -vim.g.loaded_2html_plugin = 0 -vim.g.loaded_netrw = 0 -vim.g.loaded_netrwPlugin = 0 -vim.g.loaded_matchit = 0 -vim.g.loaded_matchparen = 0 -vim.g.loaded_spec = 0 +g.loaded_gzip = 0 +g.loaded_tar = 0 +g.loaded_tarPlugin = 0 +g.loaded_zipPlugin = 0 +g.loaded_2html_plugin = 0 +g.loaded_netrw = 0 +g.loaded_netrwPlugin = 0 +g.loaded_matchit = 0 +g.loaded_matchparen = 0 +g.loaded_spec = 0 local M = {}