mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 13:30:41 +00:00
Move options from init.lua => options.lua
use a local g = vim.g
This commit is contained in:
parent
42bf581337
commit
0d7345bc44
2 changed files with 15 additions and 17 deletions
8
init.lua
8
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)
|
||||
|
||||
|
|
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue