-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
57 lines (48 loc) · 1.2 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--
-- init.lua
--
-- set to 0 to prevent runtime providers from loading; must be 0, not false
vim.g.loaded_node_provider = 0
vim.g.loaded_perl_provider = 0
vim.g.loaded_python_provider = 0
vim.g.loaded_ruby_provider = 0
vim.g.loaded_python3_provider = 0
-- must be done before loading lazy.nvim
vim.g.mapleader = ' '
vim.g.maplocalleader = ','
-- set global variables for my own config
vim.g.fancy_number = false
-- bootstrap lazy.nvim
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
}
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require('lazy').setup('plugins', {
install = { colorscheme = { 'apprentice' } },
ui = {
border = 'rounded',
size = { height = 0.8, width = 0.9 },
wrap = false,
},
})
-- Customize the less.sh plugin
vim.api.nvim_exec(
[[
function LessInitFunc()
set colorcolumn= nocursorline nonumber
endfunc
]],
false
)
require('config.options')
require('config.keymaps')
require('config.commands')
require('config.autocmds')