- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
Latest commit
15 lines (13 loc) · 543 Bytes
/
Copy pathinit.lua
File metadata and controls
15 lines (13 loc) · 543 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- global config table
_G.Config= {}
-- install 'mini.nvim'
vim.pack.add({ "https://github.com/nvim-mini/mini.nvim" })
-- loading helpers
localmisc=require("mini.misc")
-- stylua: ignore start
Config.now=function(f) misc.safely("now", f) end
Config.later=function(f) misc.safely("later", f) end
Config.now_if_args=vim.fn.argc(-1) >0andConfig.noworConfig.later
Config.on_event=function(ev, f) misc.safely("event:" ..ev, f) end
Config.on_filetype=function(ft, f) misc.safely("filetype:" ..ft, f) end
-- stylua: ignore end