Compare commits
No commits in common. "c436ad984f1704b3485b25e4dfbf6efb063c565a" and "7ce7a710c2d066cbde4689cf38bb536fb2c1e425" have entirely different histories.
c436ad984f
...
7ce7a710c2
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
#exclude precomplied things
|
||||
/plugin/*
|
@ -47,7 +47,7 @@ return require('packer').startup(function(use)
|
||||
use {
|
||||
'ms-jpq/coq_nvim',
|
||||
branch = 'coq',
|
||||
event = 'VimEnter',
|
||||
event = 'BufEnter',
|
||||
run = ':COQdeps',
|
||||
config = function() require "plugins.coq" end
|
||||
}
|
||||
@ -64,7 +64,7 @@ return require('packer').startup(function(use)
|
||||
config = function()
|
||||
require("coq_3p") {
|
||||
{src = "nvimlua", short_name = "nLUA"}, {src = "repl"},
|
||||
{src = "figlet", short_name = "BIG"}
|
||||
{src = "figlet", short_name = "BIG"}, {src = "cow"}
|
||||
}
|
||||
|
||||
end
|
||||
@ -83,7 +83,7 @@ return require('packer').startup(function(use)
|
||||
event = "FileType html,css",
|
||||
setup = function() require "plugins.emmet" end
|
||||
}
|
||||
use {"machakann/vim-sandwich", event = "VimEnter"}
|
||||
use {"machakann/vim-sandwich", event = "BufRead"}
|
||||
|
||||
use {
|
||||
"terrortylor/nvim-comment",
|
||||
@ -119,7 +119,7 @@ return require('packer').startup(function(use)
|
||||
}
|
||||
use {
|
||||
'phaazon/hop.nvim',
|
||||
event = "VimEnter",
|
||||
event = "BufRead",
|
||||
as = 'hop',
|
||||
config = function()
|
||||
require'hop'.setup {keys = 'etovxqpdygfblzhckisuran'}
|
||||
@ -149,13 +149,13 @@ return require('packer').startup(function(use)
|
||||
}
|
||||
use {
|
||||
'winston0410/range-highlight.nvim',
|
||||
event = "CmdlineEnter",
|
||||
event = "BufRead",
|
||||
config = function() require("range-highlight").setup {} end,
|
||||
requires = 'winston0410/cmd-parser.nvim'
|
||||
}
|
||||
use {
|
||||
'norcalli/nvim-colorizer.lua',
|
||||
event = "VimEnter",
|
||||
event = "BufRead",
|
||||
config = function() require'colorizer'.setup() end
|
||||
}
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
vim.g.coq_settings = { keymap = { recommended = false }, auto_start = true, clients= {tabnine = { enabled = true}} }
|
||||
vim.g.coq_settings = {auto_start = true, clients = {tabnine = {enabled = true}}}
|
||||
vim.cmd('COQnow -s')
|
||||
|
@ -3,11 +3,21 @@ local npairs = require('nvim-autopairs')
|
||||
|
||||
npairs.setup({map_bs = false})
|
||||
|
||||
vim.g.coq_settings = {
|
||||
auto_start = true,
|
||||
clients = {tabnine = {enabled = true}},
|
||||
keymap = {recommended = false}
|
||||
}
|
||||
|
||||
-- these mappings are coq recommended mappings unrelated to nvim-autopairs
|
||||
remap('i', '<esc>', [[pumvisible() ? "<c-e><esc>" : "<esc>"]], { expr = true, noremap = true })
|
||||
remap('i', '<c-c>', [[pumvisible() ? "<c-e><c-c>" : "<c-c>"]], { expr = true, noremap = true })
|
||||
remap('i', '<tab>', [[pumvisible() ? "<c-n>" : "<tab>"]], { expr = true, noremap = true })
|
||||
remap('i', '<s-tab>', [[pumvisible() ? "<c-p>" : "<bs>"]], { expr = true, noremap = true })
|
||||
remap('i', '<esc>', [[pumvisible() ? "<c-e><esc>" : "<esc>"]],
|
||||
{expr = true, noremap = true})
|
||||
remap('i', '<c-c>', [[pumvisible() ? "<c-e><c-c>" : "<c-c>"]],
|
||||
{expr = true, noremap = true})
|
||||
remap('i', '<tab>', [[pumvisible() ? "<c-n>" : "<tab>"]],
|
||||
{expr = true, noremap = true})
|
||||
remap('i', '<s-tab>', [[pumvisible() ? "<c-p>" : "<bs>"]],
|
||||
{expr = true, noremap = true})
|
||||
|
||||
-- skip it, if you use another global object
|
||||
_G.MUtils = {}
|
||||
@ -17,7 +27,8 @@ MUtils.CR = function()
|
||||
if vim.fn.complete_info({'selected'}).selected ~= -1 then
|
||||
return npairs.esc('<c-y>')
|
||||
else
|
||||
return npairs.esc('<c-e>') .. npairs.autopairs_cr()
|
||||
-- you can change <c-g><c-g> to <c-e> if you don't use other i_CTRL-X modes
|
||||
return npairs.esc('<c-g><c-g>') .. npairs.autopairs_cr()
|
||||
end
|
||||
else
|
||||
return npairs.autopairs_cr()
|
||||
@ -26,7 +37,8 @@ end
|
||||
remap('i', '<cr>', 'v:lua.MUtils.CR()', {expr = true, noremap = true})
|
||||
|
||||
MUtils.BS = function()
|
||||
if vim.fn.pumvisible() ~= 0 and vim.fn.complete_info({ 'mode' }).mode == 'eval' then
|
||||
if vim.fn.pumvisible() ~= 0 and vim.fn.complete_info({'mode'}).mode ==
|
||||
'eval' then
|
||||
return npairs.esc('<c-e>') .. npairs.autopairs_bs()
|
||||
else
|
||||
return npairs.autopairs_bs()
|
||||
|
345
plugin/packer_compiled.lua
Normal file
345
plugin/packer_compiled.lua
Normal file
@ -0,0 +1,345 @@
|
||||
-- Automatically generated packer.nvim plugin loader code
|
||||
|
||||
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
|
||||
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
|
||||
return
|
||||
end
|
||||
|
||||
vim.api.nvim_command('packadd packer.nvim')
|
||||
|
||||
local no_errors, error_msg = pcall(function()
|
||||
|
||||
local time
|
||||
local profile_info
|
||||
local should_profile = false
|
||||
if should_profile then
|
||||
local hrtime = vim.loop.hrtime
|
||||
profile_info = {}
|
||||
time = function(chunk, start)
|
||||
if start then
|
||||
profile_info[chunk] = hrtime()
|
||||
else
|
||||
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
||||
end
|
||||
end
|
||||
else
|
||||
time = function(chunk, start) end
|
||||
end
|
||||
|
||||
local function save_profiles(threshold)
|
||||
local sorted_times = {}
|
||||
for chunk_name, time_taken in pairs(profile_info) do
|
||||
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
|
||||
end
|
||||
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
|
||||
local results = {}
|
||||
for i, elem in ipairs(sorted_times) do
|
||||
if not threshold or threshold and elem[2] > threshold then
|
||||
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
||||
end
|
||||
end
|
||||
|
||||
_G._packer = _G._packer or {}
|
||||
_G._packer.profile_output = results
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], true)
|
||||
local package_path_str = "/home/juan/.cache/nvim/packer_hererocks/2.0.5/share/lua/5.1/?.lua;/home/juan/.cache/nvim/packer_hererocks/2.0.5/share/lua/5.1/?/init.lua;/home/juan/.cache/nvim/packer_hererocks/2.0.5/lib/luarocks/rocks-5.1/?.lua;/home/juan/.cache/nvim/packer_hererocks/2.0.5/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/home/juan/.cache/nvim/packer_hererocks/2.0.5/lib/lua/5.1/?.so"
|
||||
if not string.find(package.path, package_path_str, 1, true) then
|
||||
package.path = package.path .. ';' .. package_path_str
|
||||
end
|
||||
|
||||
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
|
||||
package.cpath = package.cpath .. ';' .. install_cpath_pattern
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], false)
|
||||
time([[try_loadstring definition]], true)
|
||||
local function try_loadstring(s, component, name)
|
||||
local success, result = pcall(loadstring(s))
|
||||
if not success then
|
||||
vim.schedule(function()
|
||||
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
|
||||
end)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
time([[try_loadstring definition]], false)
|
||||
time([[Defining packer_plugins]], true)
|
||||
_G.packer_plugins = {
|
||||
["cmd-parser.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/start/cmd-parser.nvim"
|
||||
},
|
||||
["coq.artifacts"] = {
|
||||
load_after = {
|
||||
coq_nvim = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/coq.artifacts"
|
||||
},
|
||||
["coq.thirdparty"] = {
|
||||
config = { "\27LJ\1\2¡\1\0\0\3\0\6\0\0144\0\0\0%\1\1\0>\0\2\0022\1\5\0003\2\2\0;\2\1\0013\2\3\0;\2\2\0013\2\4\0;\2\3\0013\2\5\0;\2\4\1>\0\2\1G\0\1\0\1\0\1\bsrc\bcow\1\0\2\bsrc\vfiglet\15short_name\bBIG\1\0\1\bsrc\trepl\1\0\2\bsrc\fnvimlua\15short_name\tnLUA\vcoq_3p\frequire\0" },
|
||||
load_after = {
|
||||
coq_nvim = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/coq.thirdparty"
|
||||
},
|
||||
coq_nvim = {
|
||||
after = { "nvim-lspconfig", "nvim-autopairs", "coq.artifacts", "coq.thirdparty" },
|
||||
config = { "\27LJ\1\2+\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\16plugins.coq\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/coq_nvim"
|
||||
},
|
||||
["emmet-vim"] = {
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/emmet-vim"
|
||||
},
|
||||
["gitsigns.nvim"] = {
|
||||
config = { "\27LJ\1\0026\0\0\2\0\3\0\0064\0\0\0%\1\1\0>\0\2\0027\0\2\0>\0\1\1G\0\1\0\nsetup\rgitsigns\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/start/gitsigns.nvim"
|
||||
},
|
||||
hop = {
|
||||
config = { "\27LJ\1\2U\0\0\2\0\4\0\a4\0\0\0%\1\1\0>\0\2\0027\0\2\0003\1\3\0>\0\2\1G\0\1\0\1\0\1\tkeys\28etovxqpdygfblzhckisuran\nsetup\bhop\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/hop"
|
||||
},
|
||||
["indent-blankline.nvim"] = {
|
||||
config = { "\27LJ\1\0028\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\29plugins.indent-blankline\frequire\0" },
|
||||
load_after = {
|
||||
["nvim-base16"] = true,
|
||||
["nvim-treesitter"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/indent-blankline.nvim"
|
||||
},
|
||||
["lualine.nvim"] = {
|
||||
config = { "\27LJ\1\0022\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\23plugins.statusline\frequire\0" },
|
||||
load_after = {
|
||||
["nvim-web-devicons"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/lualine.nvim"
|
||||
},
|
||||
neoformat = {
|
||||
commands = { "Neoformat" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/neoformat"
|
||||
},
|
||||
["nvim-autopairs"] = {
|
||||
config = { "\27LJ\1\0026\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\27plugins.nvim-autopairs\frequire\0" },
|
||||
load_after = {
|
||||
coq_nvim = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-autopairs"
|
||||
},
|
||||
["nvim-base16"] = {
|
||||
after = { "indent-blankline.nvim" },
|
||||
config = { "\27LJ\1\2.\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\19plugins.base16\frequire\0" },
|
||||
load_after = {
|
||||
["packer.nvim"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-base16"
|
||||
},
|
||||
["nvim-colorizer.lua"] = {
|
||||
config = { "\27LJ\1\0027\0\0\2\0\3\0\0064\0\0\0%\1\1\0>\0\2\0027\0\2\0>\0\1\1G\0\1\0\nsetup\14colorizer\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-colorizer.lua"
|
||||
},
|
||||
["nvim-comment"] = {
|
||||
commands = { "CommentToggle" },
|
||||
config = { "\27LJ\1\2:\0\0\2\0\3\0\0064\0\0\0%\1\1\0>\0\2\0027\0\2\0>\0\1\1G\0\1\0\nsetup\17nvim_comment\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-comment"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
after = { "nvim-lspinstall" },
|
||||
load_after = {
|
||||
coq_nvim = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-lspconfig"
|
||||
},
|
||||
["nvim-lspinstall"] = {
|
||||
config = { "\27LJ\1\0022\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\23plugins.lspinstall\frequire\0" },
|
||||
load_after = {
|
||||
["nvim-lspconfig"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-lspinstall"
|
||||
},
|
||||
["nvim-tree.lua"] = {
|
||||
commands = { "NvimTreeToggle" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-tree.lua"
|
||||
},
|
||||
["nvim-treesitter"] = {
|
||||
after = { "nvim-ts-rainbow", "indent-blankline.nvim", "vim-matchup", "spellsitter.nvim" },
|
||||
config = { "\27LJ\1\0022\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\23plugins.treesitter\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-treesitter"
|
||||
},
|
||||
["nvim-ts-rainbow"] = {
|
||||
config = { "\27LJ\1\0027\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\28plugins.nvim-ts-rainbow\frequire\0" },
|
||||
load_after = {
|
||||
["nvim-treesitter"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-ts-rainbow"
|
||||
},
|
||||
["nvim-web-devicons"] = {
|
||||
after = { "lualine.nvim" },
|
||||
load_after = {
|
||||
["packer.nvim"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons"
|
||||
},
|
||||
["packer.nvim"] = {
|
||||
after = { "nvim-web-devicons", "nvim-base16" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/packer.nvim"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/start/plenary.nvim"
|
||||
},
|
||||
["range-highlight.nvim"] = {
|
||||
config = { "\27LJ\1\2A\0\0\2\0\3\0\a4\0\0\0%\1\1\0>\0\2\0027\0\2\0002\1\0\0>\0\2\1G\0\1\0\nsetup\20range-highlight\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/range-highlight.nvim"
|
||||
},
|
||||
["shade.nvim"] = {
|
||||
config = { "\27LJ\1\2-\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\18plugins.shade\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/shade.nvim"
|
||||
},
|
||||
sniprun = {
|
||||
commands = { "SnipRun" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/sniprun"
|
||||
},
|
||||
["spellsitter.nvim"] = {
|
||||
config = { "\27LJ\1\0029\0\0\2\0\3\0\0064\0\0\0%\1\1\0>\0\2\0027\0\2\0>\0\1\1G\0\1\0\nsetup\16spellsitter\frequire\0" },
|
||||
load_after = {
|
||||
["nvim-treesitter"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/spellsitter.nvim"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
commands = { "Telescope" },
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/telescope.nvim"
|
||||
},
|
||||
["vim-fugitive"] = {
|
||||
commands = { "G" },
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/vim-fugitive"
|
||||
},
|
||||
["vim-latex-live-preview"] = {
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/vim-latex-live-preview"
|
||||
},
|
||||
["vim-matchup"] = {
|
||||
after_files = { "/home/juan/.local/share/nvim/site/pack/packer/opt/vim-matchup/after/plugin/matchit.vim" },
|
||||
config = { "\27LJ\1\2/\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\20plugins.matchup\frequire\0" },
|
||||
load_after = {
|
||||
["nvim-treesitter"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/vim-matchup"
|
||||
},
|
||||
["vim-sandwich"] = {
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/vim-sandwich"
|
||||
},
|
||||
vimwiki = {
|
||||
commands = { "VimwikiIndex" },
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/vimwiki"
|
||||
}
|
||||
}
|
||||
|
||||
time([[Defining packer_plugins]], false)
|
||||
-- Setup for: vim-latex-live-preview
|
||||
time([[Setup for vim-latex-live-preview]], true)
|
||||
try_loadstring("\27LJ\1\2?\0\0\2\0\4\0\0054\0\0\0007\0\1\0%\1\3\0:\1\2\0G\0\1\0\fzathura\26livepreview_previewer\6g\bvim\0", "setup", "vim-latex-live-preview")
|
||||
time([[Setup for vim-latex-live-preview]], false)
|
||||
-- Setup for: emmet-vim
|
||||
time([[Setup for emmet-vim]], true)
|
||||
try_loadstring("\27LJ\1\2-\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\18plugins.emmet\frequire\0", "setup", "emmet-vim")
|
||||
time([[Setup for emmet-vim]], false)
|
||||
-- Setup for: vimwiki
|
||||
time([[Setup for vimwiki]], true)
|
||||
try_loadstring("\27LJ\1\2/\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\20plugins.vimwiki\frequire\0", "setup", "vimwiki")
|
||||
time([[Setup for vimwiki]], false)
|
||||
-- Config for: gitsigns.nvim
|
||||
time([[Config for gitsigns.nvim]], true)
|
||||
try_loadstring("\27LJ\1\0026\0\0\2\0\3\0\0064\0\0\0%\1\1\0>\0\2\0027\0\2\0>\0\1\1G\0\1\0\nsetup\rgitsigns\frequire\0", "config", "gitsigns.nvim")
|
||||
time([[Config for gitsigns.nvim]], false)
|
||||
|
||||
-- Command lazy-loads
|
||||
time([[Defining lazy-load commands]], true)
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Neoformat lua require("packer.load")({'neoformat'}, { cmd = "Neoformat", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Telescope lua require("packer.load")({'telescope.nvim'}, { cmd = "Telescope", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file NvimTreeToggle lua require("packer.load")({'nvim-tree.lua'}, { cmd = "NvimTreeToggle", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file SnipRun lua require("packer.load")({'sniprun'}, { cmd = "SnipRun", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file VimwikiIndex lua require("packer.load")({'vimwiki'}, { cmd = "VimwikiIndex", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file CommentToggle lua require("packer.load")({'nvim-comment'}, { cmd = "CommentToggle", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]])
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file G lua require("packer.load")({'vim-fugitive'}, { cmd = "G", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]])
|
||||
time([[Defining lazy-load commands]], false)
|
||||
|
||||
vim.cmd [[augroup packer_load_aucmds]]
|
||||
vim.cmd [[au!]]
|
||||
-- Event lazy-loads
|
||||
time([[Defining lazy-load event autocommands]], true)
|
||||
vim.cmd [[au FileType tex ++once lua require("packer.load")({'vim-latex-live-preview'}, { event = "FileType tex" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufRead * ++once lua require("packer.load")({'vim-sandwich', 'range-highlight.nvim', 'hop', 'nvim-colorizer.lua'}, { event = "BufRead *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au VimEnter * ++once lua require("packer.load")({'packer.nvim', 'nvim-treesitter', 'shade.nvim'}, { event = "VimEnter *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au FileType html,css ++once lua require("packer.load")({'emmet-vim'}, { event = "FileType html,css" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufEnter * ++once lua require("packer.load")({'coq_nvim'}, { event = "BufEnter *" }, _G.packer_plugins)]]
|
||||
time([[Defining lazy-load event autocommands]], false)
|
||||
vim.cmd("augroup END")
|
||||
if should_profile then save_profiles() end
|
||||
|
||||
end)
|
||||
|
||||
if not no_errors then
|
||||
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
||||
end
|
Loading…
Reference in New Issue
Block a user