Move options from init.lua => options.lua

use a local g = vim.g
This commit is contained in:
Akianonymus 2021-07-14 10:54:09 +05:30
parent 42bf581337
commit 0d7345bc44
2 changed files with 15 additions and 17 deletions

View file

@ -2,14 +2,8 @@
require "pluginList" require "pluginList"
require "options" require "options"
local g = vim.g
g.mapleader = " "
g.auto_save = false
-- colorscheme related stuff -- colorscheme related stuff
vim.g.nvchad_theme = "onedark"
g.nvchad_theme = "onedark"
local base16 = require "base16" local base16 = require "base16"
base16(base16.themes["onedark"], true) base16(base16.themes["onedark"], true)

View file

@ -1,4 +1,5 @@
local opt = vim.opt local opt = vim.opt
local g = vim.g
opt.ruler = false opt.ruler = false
opt.hidden = true opt.hidden = true
@ -30,17 +31,20 @@ opt.expandtab = true
opt.shiftwidth = 2 opt.shiftwidth = 2
opt.smartindent = true opt.smartindent = true
g.mapleader = " "
g.auto_save = false
-- disable builtin vim plugins -- disable builtin vim plugins
vim.g.loaded_gzip = 0 g.loaded_gzip = 0
vim.g.loaded_tar = 0 g.loaded_tar = 0
vim.g.loaded_tarPlugin = 0 g.loaded_tarPlugin = 0
vim.g.loaded_zipPlugin = 0 g.loaded_zipPlugin = 0
vim.g.loaded_2html_plugin = 0 g.loaded_2html_plugin = 0
vim.g.loaded_netrw = 0 g.loaded_netrw = 0
vim.g.loaded_netrwPlugin = 0 g.loaded_netrwPlugin = 0
vim.g.loaded_matchit = 0 g.loaded_matchit = 0
vim.g.loaded_matchparen = 0 g.loaded_matchparen = 0
vim.g.loaded_spec = 0 g.loaded_spec = 0
local M = {} local M = {}