diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d09a141 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +plugin/ +plugin/* diff --git a/lua/defs.lua b/lua/defs.lua index 94741c5..92c1918 100644 --- a/lua/defs.lua +++ b/lua/defs.lua @@ -1,5 +1,5 @@ return { - -- Yes, I use the Mate desktop environment + -- Yes, I use the Gnome desktop environment template_dir = '~/templates', external_term = 'gnome-terminal', external_filemgr = 'nautilus', diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua deleted file mode 100644 index 57e5354..0000000 --- a/plugin/packer_compiled.lua +++ /dev/null @@ -1,276 +0,0 @@ --- 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() - -_G._packer = _G._packer or {} -_G._packer.inside_compile = true - -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 - if threshold then - table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)') - end - - _G._packer.profile_output = results -end - -time([[Luarocks path setup]], true) -local package_path_str = "/home/iang/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/iang/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/iang/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/iang/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" -local install_cpath_pattern = "/home/iang/.cache/nvim/packer_hererocks/2.1.0-beta3/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), name, _G.packer_plugins[name]) - 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 = { - ["aerial.nvim"] = { - config = { "\27LJ\2\n4\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\vaerial\frequire\0" }, - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/aerial.nvim", - url = "https://github.com/stevearc/aerial.nvim" - }, - ["closetag.vim"] = { - loaded = false, - needs_bufread = true, - only_cond = false, - path = "/home/iang/.local/share/nvim/site/pack/packer/opt/closetag.vim", - url = "https://github.com/alvan/closetag.vim" - }, - ["coq.artifacts"] = { - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/coq.artifacts", - url = "https://github.com/ms-jpq/coq.artifacts" - }, - coq_nvim = { - config = { "\27LJ\2\n@\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0!autocmd VimEnter * COQnow -s\bcmd\bvim\0" }, - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/coq_nvim", - url = "https://github.com/ms-jpq/coq_nvim" - }, - delimitMate = { - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/delimitMate", - url = "https://github.com/Raimondi/delimitMate" - }, - ["goyo.vim"] = { - commands = { "Goyo" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/iang/.local/share/nvim/site/pack/packer/opt/goyo.vim", - url = "https://github.com/junegunn/goyo.vim" - }, - indentLine = { - after_files = { "/home/iang/.local/share/nvim/site/pack/packer/opt/indentLine/after/plugin/indentLine.vim" }, - loaded = true, - needs_bufread = false, - path = "/home/iang/.local/share/nvim/site/pack/packer/opt/indentLine", - url = "https://github.com/Yggdroot/indentLine" - }, - ["kotlin-vim"] = { - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/kotlin-vim", - url = "https://github.com/udalov/kotlin-vim" - }, - ["mason-lspconfig.nvim"] = { - config = { "\27LJ\2\n›\1\0\2\a\0\6\0\0196\2\0\0'\4\1\0B\2\2\0029\3\2\2\18\5\0\0\18\6\1\0B\3\3\0019\3\3\2\18\5\0\0\18\6\1\0B\3\3\0016\3\0\0'\5\4\0B\3\2\0029\3\5\3\18\5\0\0\18\6\1\0B\3\3\1K\0\1\0\14on_attach\vaerial\22make_lsp_mappings\22make_lsp_commands\15lsp_basics\frequire…\1\1\1\a\0\b\0\0156\1\0\0'\3\1\0B\1\2\0028\1\0\0019\1\2\0016\3\0\0'\5\3\0B\3\2\0029\3\4\0035\5\6\0003\6\5\0=\6\a\5B\3\2\0A\1\0\1K\0\1\0\14on_attach\1\0\0\0\28lsp_ensure_capabilities\bcoq\nsetup\14lspconfig\frequire\1\1\0\5\0\b\0\0146\0\0\0'\2\1\0B\0\2\0029\1\2\0005\3\4\0005\4\3\0=\4\5\3B\1\2\0019\1\6\0004\3\3\0003\4\a\0>\4\1\3B\1\2\1K\0\1\0\0\19setup_handlers\21ensure_installed\1\0\0\1\4\0\0\16sumneko_lua\ngopls\nvimls\nsetup\20mason-lspconfig\frequire\0" }, - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim", - url = "https://github.com/williamboman/mason-lspconfig.nvim" - }, - ["mason.nvim"] = { - config = { "\27LJ\2\n3\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\nmason\frequire\0" }, - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/mason.nvim", - url = "https://github.com/williamboman/mason.nvim" - }, - ["neovim-ayu"] = { - config = { "\27LJ\2\nÆ\1\0\0\5\0\14\0\0226\0\0\0'\2\1\0B\0\2\0026\1\2\0009\1\3\1'\3\4\0B\1\2\0029\1\5\0019\2\6\0005\4\a\0B\2\2\0016\2\0\0'\4\b\0B\2\2\0029\2\t\0025\4\n\0B\2\2\0016\2\v\0009\2\f\2'\4\r\0B\2\2\1K\0\1\0\20colorscheme ayu\bcmd\bvim\1\0\1\vmirage\1\nsetup\bayu\1\3\0\0\15background\nlight\bset\thour\a*t\tdate\aos\rconftool\frequire\0" }, - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/neovim-ayu", - url = "https://github.com/Shatur/neovim-ayu" - }, - ["nvim-lsp-basics"] = { - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/nvim-lsp-basics", - url = "https://github.com/nanotee/nvim-lsp-basics" - }, - ["nvim-lspconfig"] = { - config = { "\27LJ\2\nF\0\0\3\0\4\0\0066\0\0\0009\0\1\0009\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\17virtual_text\1\vconfig\15diagnostic\bvim\0" }, - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", - url = "https://github.com/neovim/nvim-lspconfig" - }, - ["packer.nvim"] = { - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/packer.nvim", - url = "https://github.com/wbthomason/packer.nvim" - }, - ["trouble.nvim"] = { - config = { "\27LJ\2\n‚\2\0\0\5\0\v\0\0176\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\0016\0\0\0'\2\6\0B\0\2\0029\0\a\0'\2\b\0'\3\t\0'\4\n\0B\0\4\1K\0\1\0\23:TroubleToggle\f\6n\bmap\rconftool\nsigns\1\0\4\nerror\aE:\thint\aH:\fwarning\aW:\16information\aI:\1\0\5\16fold_closed\6>\vheight\3\5\14fold_open\6v\nicons\1\25use_diagnostic_signs\1\nsetup\ftrouble\frequire\0" }, - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/trouble.nvim", - url = "https://github.com/folke/trouble.nvim" - }, - ["vim-css-color"] = { - loaded = true, - path = "/home/iang/.local/share/nvim/site/pack/packer/start/vim-css-color", - url = "https://github.com/ap/vim-css-color" - }, - ["vim-go"] = { - loaded = false, - needs_bufread = true, - only_cond = false, - path = "/home/iang/.local/share/nvim/site/pack/packer/opt/vim-go", - url = "https://github.com/fatih/vim-go" - }, - ["vim-latex-live-preview"] = { - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/iang/.local/share/nvim/site/pack/packer/opt/vim-latex-live-preview", - url = "https://github.com/xuhdev/vim-latex-live-preview" - }, - ["vim-visual-multi"] = { - keys = { { "", "" }, { "", "" } }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/iang/.local/share/nvim/site/pack/packer/opt/vim-visual-multi", - url = "https://github.com/mg979/vim-visual-multi" - } -} - -time([[Defining packer_plugins]], false) --- Setup for: vim-latex-live-preview -time([[Setup for vim-latex-live-preview]], true) -try_loadstring("\27LJ\2\nŽ\1\0\0\4\0\b\0\f6\0\0\0009\0\1\0006\1\3\0'\3\4\0B\1\2\0029\1\5\1=\1\2\0006\0\0\0009\0\1\0'\1\a\0=\1\6\0K\0\1\0\fxelatex\23livepreview_engine\23external_pdfviewer\tdefs\frequire\26livepreview_previewer\6g\bvim\0", "setup", "vim-latex-live-preview") -time([[Setup for vim-latex-live-preview]], false) --- Setup for: indentLine -time([[Setup for indentLine]], true) -try_loadstring("\27LJ\2\nY\0\0\2\0\5\0\t6\0\0\0009\0\1\0'\1\3\0=\1\2\0006\0\0\0009\0\1\0)\1\0\0=\1\4\0K\0\1\0\26indentLine_setConceal\6|\20indentLine_char\6g\bvim\0", "setup", "indentLine") -time([[Setup for indentLine]], false) -time([[packadd for indentLine]], true) -vim.cmd [[packadd indentLine]] -time([[packadd for indentLine]], false) --- Config for: coq_nvim -time([[Config for coq_nvim]], true) -try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0!autocmd VimEnter * COQnow -s\bcmd\bvim\0", "config", "coq_nvim") -time([[Config for coq_nvim]], false) --- Config for: nvim-lspconfig -time([[Config for nvim-lspconfig]], true) -try_loadstring("\27LJ\2\nF\0\0\3\0\4\0\0066\0\0\0009\0\1\0009\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\17virtual_text\1\vconfig\15diagnostic\bvim\0", "config", "nvim-lspconfig") -time([[Config for nvim-lspconfig]], false) --- Config for: mason-lspconfig.nvim -time([[Config for mason-lspconfig.nvim]], true) -try_loadstring("\27LJ\2\n›\1\0\2\a\0\6\0\0196\2\0\0'\4\1\0B\2\2\0029\3\2\2\18\5\0\0\18\6\1\0B\3\3\0019\3\3\2\18\5\0\0\18\6\1\0B\3\3\0016\3\0\0'\5\4\0B\3\2\0029\3\5\3\18\5\0\0\18\6\1\0B\3\3\1K\0\1\0\14on_attach\vaerial\22make_lsp_mappings\22make_lsp_commands\15lsp_basics\frequire…\1\1\1\a\0\b\0\0156\1\0\0'\3\1\0B\1\2\0028\1\0\0019\1\2\0016\3\0\0'\5\3\0B\3\2\0029\3\4\0035\5\6\0003\6\5\0=\6\a\5B\3\2\0A\1\0\1K\0\1\0\14on_attach\1\0\0\0\28lsp_ensure_capabilities\bcoq\nsetup\14lspconfig\frequire\1\1\0\5\0\b\0\0146\0\0\0'\2\1\0B\0\2\0029\1\2\0005\3\4\0005\4\3\0=\4\5\3B\1\2\0019\1\6\0004\3\3\0003\4\a\0>\4\1\3B\1\2\1K\0\1\0\0\19setup_handlers\21ensure_installed\1\0\0\1\4\0\0\16sumneko_lua\ngopls\nvimls\nsetup\20mason-lspconfig\frequire\0", "config", "mason-lspconfig.nvim") -time([[Config for mason-lspconfig.nvim]], false) --- Config for: aerial.nvim -time([[Config for aerial.nvim]], true) -try_loadstring("\27LJ\2\n4\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\vaerial\frequire\0", "config", "aerial.nvim") -time([[Config for aerial.nvim]], false) --- Config for: neovim-ayu -time([[Config for neovim-ayu]], true) -try_loadstring("\27LJ\2\nÆ\1\0\0\5\0\14\0\0226\0\0\0'\2\1\0B\0\2\0026\1\2\0009\1\3\1'\3\4\0B\1\2\0029\1\5\0019\2\6\0005\4\a\0B\2\2\0016\2\0\0'\4\b\0B\2\2\0029\2\t\0025\4\n\0B\2\2\0016\2\v\0009\2\f\2'\4\r\0B\2\2\1K\0\1\0\20colorscheme ayu\bcmd\bvim\1\0\1\vmirage\1\nsetup\bayu\1\3\0\0\15background\nlight\bset\thour\a*t\tdate\aos\rconftool\frequire\0", "config", "neovim-ayu") -time([[Config for neovim-ayu]], false) --- Config for: trouble.nvim -time([[Config for trouble.nvim]], true) -try_loadstring("\27LJ\2\n‚\2\0\0\5\0\v\0\0176\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\0016\0\0\0'\2\6\0B\0\2\0029\0\a\0'\2\b\0'\3\t\0'\4\n\0B\0\4\1K\0\1\0\23:TroubleToggle\f\6n\bmap\rconftool\nsigns\1\0\4\nerror\aE:\thint\aH:\fwarning\aW:\16information\aI:\1\0\5\16fold_closed\6>\vheight\3\5\14fold_open\6v\nicons\1\25use_diagnostic_signs\1\nsetup\ftrouble\frequire\0", "config", "trouble.nvim") -time([[Config for trouble.nvim]], false) --- Config for: mason.nvim -time([[Config for mason.nvim]], true) -try_loadstring("\27LJ\2\n3\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\nmason\frequire\0", "config", "mason.nvim") -time([[Config for mason.nvim]], false) - --- Command lazy-loads -time([[Defining lazy-load commands]], true) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Goyo lua require("packer.load")({'goyo.vim'}, { cmd = "Goyo", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) -time([[Defining lazy-load commands]], false) - --- Keymap lazy-loads -time([[Defining lazy-load keymaps]], true) -vim.cmd [[noremap lua require("packer.load")({'vim-visual-multi'}, { keys = "C-Up>", prefix = "" }, _G.packer_plugins)]] -vim.cmd [[noremap lua require("packer.load")({'vim-visual-multi'}, { keys = "C-Down>", prefix = "" }, _G.packer_plugins)]] -time([[Defining lazy-load keymaps]], false) - -vim.cmd [[augroup packer_load_aucmds]] -vim.cmd [[au!]] - -- Filetype lazy-loads -time([[Defining lazy-load filetype autocommands]], true) -vim.cmd [[au FileType tex ++once lua require("packer.load")({'vim-latex-live-preview'}, { ft = "tex" }, _G.packer_plugins)]] -vim.cmd [[au FileType go ++once lua require("packer.load")({'vim-go'}, { ft = "go" }, _G.packer_plugins)]] -vim.cmd [[au FileType vue ++once lua require("packer.load")({'closetag.vim'}, { ft = "vue" }, _G.packer_plugins)]] -vim.cmd [[au FileType html ++once lua require("packer.load")({'closetag.vim'}, { ft = "html" }, _G.packer_plugins)]] -time([[Defining lazy-load filetype autocommands]], false) -vim.cmd("augroup END") -vim.cmd [[augroup filetypedetect]] -time([[Sourcing ftdetect script at: /home/iang/.local/share/nvim/site/pack/packer/opt/vim-go/ftdetect/gofiletype.vim]], true) -vim.cmd [[source /home/iang/.local/share/nvim/site/pack/packer/opt/vim-go/ftdetect/gofiletype.vim]] -time([[Sourcing ftdetect script at: /home/iang/.local/share/nvim/site/pack/packer/opt/vim-go/ftdetect/gofiletype.vim]], false) -vim.cmd("augroup END") - -_G._packer.inside_compile = false -if _G._packer.needs_bufread == true then - vim.cmd("doautocmd BufRead") -end -_G._packer.needs_bufread = false - -if should_profile then save_profiles() end - -end) - -if not no_errors then - error_msg = error_msg:gsub('"', '\\"') - vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') -end