-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
41 lines (34 loc) · 876 Bytes
/
init.lua
File metadata and controls
41 lines (34 loc) · 876 Bytes
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
-- bootstrap
local std = vim.fn.stdpath
local path = std('data') .. '/lazy/lazy.nvim'
if not vim.uv.fs_stat(path) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'--single-branch',
'https://github.com/folke/lazy.nvim.git',
path,
})
end
-- init
L = require('lib')
vim.g.mapleader = ' '
vim.opt.runtimepath:prepend(path)
require('lazy').setup('plugins', {
root = std('data') .. '/lazy',
install = { missing = true },
checker = { enabled = false },
ui = { border = 'single' },
performance = {
cache = {
enabled = true,
path = std('cache') .. '/lazy/cache',
},
},
})
vim.o.termguicolors = true
vim.api.nvim_command('filetype plugin indent on')
vim.cmd.colorscheme('leafless')
-- FIX: deprecate once https://github.com/neovim/neovim/pull/33145 is merged
vim.g._ts_force_sync_parsing = true -- see 32660