Compare commits

..

2 commits

Author SHA1 Message Date
c3f1b738b2 Shortened mapleader 2021-08-11 19:20:33 +00:00
f77096be5e Optimized startup w/ async and global vars 2021-08-11 19:19:02 +00:00
5 changed files with 93 additions and 56 deletions

View file

@ -1,3 +1,40 @@
require('general') -- see `:help` for any questions
require('keymap') -- use `&<var>` to show value of vimscript variable
require('ui')
-- API --
o = vim.o -- options
go = vim.go -- only-global options
bo = vim.bo -- buffer local options
wo = vim.wo -- window local options
cmd = vim.cmd -- vim commands
fn = vim.fn -- vim functions
opt = vim.opt -- vim option object
g = vim.g -- global variables
b = vim.b -- buffer local variables
w = vim.w -- window local variables
t = vim.t -- tab local variables
v = vim.v -- variables
env = vim.env -- environment variables
local modules = {
'general',
'keymap',
'ui',
'native-lsp'
}
local async
async = vim.loop.new_async(
vim.schedule_wrap(
function()
for i = 1, #modules, 1 do
pcall(require, modules[i])
end
async:close()
end
)
)
async:send()

View file

@ -3,24 +3,24 @@
-- API -- -- API --
local o = vim.o -- options -- o = vim.o -- options
local go = vim.go -- only-global options -- go = vim.go -- only-global options
local bo = vim.bo -- buffer local options -- bo = vim.bo -- buffer local options
local wo = vim.wo -- window local options -- wo = vim.wo -- window local options
local cmd = vim.cmd -- vim commands -- cmd = vim.cmd -- vim commands
local fn = vim.fn -- vim functions -- fn = vim.fn -- vim functions
local opt = vim.opt -- vim option object -- opt = vim.opt -- vim option object
local g = vim.g -- global variables -- g = vim.g -- global variables
local b = vim.b -- buffer local variables -- b = vim.b -- buffer local variables
local w = vim.w -- window local variables -- w = vim.w -- window local variables
local t = vim.t -- tab local variables -- t = vim.t -- tab local variables
local v = vim.v -- variables -- v = vim.v -- variables
local env = vim.env -- environment variables -- env = vim.env -- environment variables
vim.g.mapleader = ' ' g.mapleader = ' '
o.mouse = '' -- mouse off o.mouse = '' -- mouse off

View file

@ -4,21 +4,21 @@
require('keymap/functional') require('keymap/functional')
-- API -- -- API --
local o = vim.o -- options -- o = vim.o -- options
local go = vim.go -- only-global options -- go = vim.go -- only-global options
local bo = vim.bo -- buffer local options -- bo = vim.bo -- buffer local options
local wo = vim.wo -- window local options -- wo = vim.wo -- window local options
local cmd = vim.cmd -- vim commands -- cmd = vim.cmd -- vim commands
local fn = vim.fn -- vim functions -- fn = vim.fn -- vim functions
local opt = vim.opt -- vim option object -- opt = vim.opt -- vim option object
local g = vim.g -- global variables -- g = vim.g -- global variables
local b = vim.b -- buffer local variables -- b = vim.b -- buffer local variables
local w = vim.w -- window local variables -- w = vim.w -- window local variables
local t = vim.t -- tab local variables -- t = vim.t -- tab local variables
local v = vim.v -- variables -- v = vim.v -- variables
local env = vim.env -- environment variables -- env = vim.env -- environment variables
local layouts = { local layouts = {

View file

@ -4,21 +4,21 @@
require('ui/statusbar') require('ui/statusbar')
-- API -- -- API --
local o = vim.o -- options -- o = vim.o -- options
local go = vim.go -- only-global options -- go = vim.go -- only-global options
local bo = vim.bo -- buffer local options -- bo = vim.bo -- buffer local options
local wo = vim.wo -- window local options -- wo = vim.wo -- window local options
local cmd = vim.cmd -- vim commands -- cmd = vim.cmd -- vim commands
local fn = vim.fn -- vim functions -- fn = vim.fn -- vim functions
local opt = vim.opt -- vim option object -- opt = vim.opt -- vim option object
local g = vim.g -- global variables -- g = vim.g -- global variables
local b = vim.b -- buffer local variables -- b = vim.b -- buffer local variables
local w = vim.w -- window local variables -- w = vim.w -- window local variables
local t = vim.t -- tab local variables -- t = vim.t -- tab local variables
local v = vim.v -- variables -- v = vim.v -- variables
local env = vim.env -- environment variables -- env = vim.env -- environment variables

View file

@ -2,21 +2,21 @@
-- use `&<var>` to show value of vimscript variable -- use `&<var>` to show value of vimscript variable
-- API -- -- API --
local o = vim.o -- options -- o = vim.o -- options
local go = vim.go -- only-global options -- go = vim.go -- only-global options
local bo = vim.bo -- buffer local options -- bo = vim.bo -- buffer local options
local wo = vim.wo -- window local options -- wo = vim.wo -- window local options
local cmd = vim.cmd -- vim commands -- cmd = vim.cmd -- vim commands
local fn = vim.fn -- vim functions -- fn = vim.fn -- vim functions
local opt = vim.opt -- vim option object -- opt = vim.opt -- vim option object
local g = vim.g -- global variables -- g = vim.g -- global variables
local b = vim.b -- buffer local variables -- b = vim.b -- buffer local variables
local w = vim.w -- window local variables -- w = vim.w -- window local variables
local t = vim.t -- tab local variables -- t = vim.t -- tab local variables
local v = vim.v -- variables -- v = vim.v -- variables
local env = vim.env -- environment variables -- env = vim.env -- environment variables
--Later generalize into plugin --Later generalize into plugin