-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
70 lines (58 loc) · 1.46 KB
/
init.lua
File metadata and controls
70 lines (58 loc) · 1.46 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
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(lazypath)
local g = vim.g
local cmd = vim.cmd
local fn = vim.fn
-- disable providers
g.loaded_python_provider = 0
g.loaded_python3_provider = 0
g.loaded_ruby_provider = 0
g.loaded_node_provider = 0
g.loaded_perl_provider = 0
g.zig_fmt_autosave = 0
g.mapleader = ','
-- g.loaded_netrw = 1
-- g.loaded_netrwPlugin = 1
tm_opts = {}
require'lazy'.setup {
spec = {
{ import = 'plugins' },
},
change_detection = {
enabled = true,
notify = false,
},
}
require 'buf-config'.setup()
-- post-plugin configuration
UU = require'util'
require 'impl.ftdetect'
require 'config.editor'
require 'config.keybindings'
cmd[[
runtime vimscript/ui.vim
runtime vimscript/autocmd.vim
runtime vimscript/commands.vim
]]
-- require 'impl.bad-habits'
function printi(...)
vim.print(...)
-- local tbl = vim.tbl_map(vim.inspect, {...})
-- local n = select('#', ...)
-- print(unpack(tbl, 1, n))
end
-- temporary workaround for deprecations, only in this version
-- since I want to see deprecation warnings in the future.
if tostring(vim.version()) == '0.12.0-dev+gc7d8812ca7' then
vim.deprecate = function() end
end