From 023b32c13a7d3ed82935eb57ef9009ceb4fb037b Mon Sep 17 00:00:00 2001 From: c Date: Sat, 17 Dec 2022 16:57:09 -0600 Subject: [PATCH] restructure nvim folders --- alacritty/.config/alacritty/alacritty.yml | 2 +- nvim/.config/nvim/after/plugin/alpha.lua | 73 ++++++++++ nvim/.config/nvim/after/plugin/possession.lua | 9 ++ nvim/.config/nvim/after/plugin/telescope.lua | 16 +++ nvim/.config/nvim/after/plugin/treesitter.lua | 26 ++++ nvim/.config/nvim/init.lua | 62 +-------- .../nvim/lua/{ => clint}/colorscheme.lua | 0 nvim/.config/nvim/lua/clint/completion.lua | 57 ++++++++ nvim/.config/nvim/lua/clint/init.lua | 5 + nvim/.config/nvim/lua/clint/keybindings.lua | 62 +++++++++ nvim/.config/nvim/lua/clint/lsp.lua | 66 +++++++++ nvim/.config/nvim/lua/clint/plugins.lua | 105 +++++++++++++++ .../.config/nvim/lua/{ => clint}/settings.lua | 5 +- nvim/.config/nvim/plugin/packer_compiled.lua | 127 +++++++++++++----- 14 files changed, 521 insertions(+), 94 deletions(-) create mode 100644 nvim/.config/nvim/after/plugin/alpha.lua create mode 100644 nvim/.config/nvim/after/plugin/possession.lua create mode 100644 nvim/.config/nvim/after/plugin/telescope.lua create mode 100644 nvim/.config/nvim/after/plugin/treesitter.lua rename nvim/.config/nvim/lua/{ => clint}/colorscheme.lua (100%) create mode 100644 nvim/.config/nvim/lua/clint/completion.lua create mode 100644 nvim/.config/nvim/lua/clint/init.lua create mode 100644 nvim/.config/nvim/lua/clint/keybindings.lua create mode 100644 nvim/.config/nvim/lua/clint/lsp.lua create mode 100644 nvim/.config/nvim/lua/clint/plugins.lua rename nvim/.config/nvim/lua/{ => clint}/settings.lua (91%) diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml index cea7e26..b3bf919 100644 --- a/alacritty/.config/alacritty/alacritty.yml +++ b/alacritty/.config/alacritty/alacritty.yml @@ -1,5 +1,5 @@ window: - opacity: 0.8 + opacity: 0.9 font: size: 14 diff --git a/nvim/.config/nvim/after/plugin/alpha.lua b/nvim/.config/nvim/after/plugin/alpha.lua new file mode 100644 index 0000000..10ec0ad --- /dev/null +++ b/nvim/.config/nvim/after/plugin/alpha.lua @@ -0,0 +1,73 @@ +local status_ok, alpha = pcall(require, "alpha") +if not status_ok then + return +end + +local dashboard = require("alpha.themes.dashboard") + +HYDRA = { + " ", + " ", + " ", + " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ", + " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ", + " ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ", + " ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ", + " ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ", + " ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ", + " ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ", + " ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ", + " ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ", + " ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ", + " ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ", + " ", + } + +dashboard.section.header.val = HYDRA + +ANIME = { + '', + '⡆⣐⢕⢕⢕⢕⢕⢕⢕⢕⠅⢗⢕⢕⢕⢕⢕⢕⢕⠕⠕⢕⢕⢕⢕⢕⢕⢕⢕⢕', + '⢐⢕⢕⢕⢕⢕⣕⢕⢕⠕⠁⢕⢕⢕⢕⢕⢕⢕⢕⠅⡄⢕⢕⢕⢕⢕⢕⢕⢕⢕', + '⢕⢕⢕⢕⢕⠅⢗⢕⠕⣠⠄⣗⢕⢕⠕⢕⢕⢕⠕⢠⣿⠐⢕⢕⢕⠑⢕⢕⠵⢕', + '⢕⢕⢕⢕⠁⢜⠕⢁⣴⣿⡇⢓⢕⢵⢐⢕⢕⠕⢁⣾⢿⣧⠑⢕⢕⠄⢑⢕⠅⢕', + '⢕⢕⠵⢁⠔⢁⣤⣤⣶⣶⣶⡐⣕⢽⠐⢕⠕⣡⣾⣶⣶⣶⣤⡁⢓⢕⠄⢑⢅⢑', + '⠍⣧⠄⣶⣾⣿⣿⣿⣿⣿⣿⣷⣔⢕⢄⢡⣾⣿⣿⣿⣿⣿⣿⣿⣦⡑⢕⢤⠱⢐', + '⢠⢕⠅⣾⣿⠋⢿⣿⣿⣿⠉⣿⣿⣷⣦⣶⣽⣿⣿⠈⣿⣿⣿⣿⠏⢹⣷⣷⡅⢐', + '⣔⢕⢥⢻⣿⡀⠈⠛⠛⠁⢠⣿⣿⣿⣿⣿⣿⣿⣿⡀⠈⠛⠛⠁⠄⣼⣿⣿⡇⢔', + '⢕⢕⢽⢸⢟⢟⢖⢖⢤⣶⡟⢻⣿⡿⠻⣿⣿⡟⢀⣿⣦⢤⢤⢔⢞⢿⢿⣿⠁⢕', + '⢕⢕⠅⣐⢕⢕⢕⢕⢕⣿⣿⡄⠛⢀⣦⠈⠛⢁⣼⣿⢗⢕⢕⢕⢕⢕⢕⡏⣘⢕', + '⢕⢕⠅⢓⣕⣕⣕⣕⣵⣿⣿⣿⣾⣿⣿⣿⣿⣿⣿⣿⣷⣕⢕⢕⢕⢕⡵⢀⢕⢕', + '⢑⢕⠃⡈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢃⢕⢕⢕', + '⣆⢕⠄⢱⣄⠛⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢁⢕⢕⠕⢁', + '⣿⣦⡀⣿⣿⣷⣶⣬⣍⣛⣛⣛⡛⠿⠿⠿⠛⠛⢛⣛⣉⣭⣤⣂⢜⠕⢑⣡⣴⣿', + '', +} +dashboard.section.buttons.val = { + dashboard.button("f", " Find file", ":Telescope find_files "), + dashboard.button("e", " New file", ":ene startinsert "), + dashboard.button("p", " Find project", ":Telescope projects "), + dashboard.button("r", " Recently used files", ":Telescope oldfiles "), + dashboard.button("t", " Find text", ":Telescope live_grep "), + dashboard.button("c", " Configuration", ":e ~/.config/nvim/init.lua "), + dashboard.button("q", " Quit Neovim", ":qa"), +} + +local function footer() + -- NOTE: requires the fortune-mod package to work + -- local handle = io.popen("fortune") + -- local fortune = handle:read("*a") + -- handle:close() + -- return fortune + return "" +end + +dashboard.section.footer.val = footer() + +dashboard.section.footer.opts.hl = "Type" +dashboard.section.header.opts.hl = "Include" +dashboard.section.buttons.opts.hl = "Keyword" + +dashboard.opts.opts.noautocmd = true +-- vim.cmd([[autocmd User AlphaReady echo 'ready']]) +alpha.setup(dashboard.opts) diff --git a/nvim/.config/nvim/after/plugin/possession.lua b/nvim/.config/nvim/after/plugin/possession.lua new file mode 100644 index 0000000..0c59246 --- /dev/null +++ b/nvim/.config/nvim/after/plugin/possession.lua @@ -0,0 +1,9 @@ +require('possession').setup{ +autosave = { + current = false, -- or fun(name): boolean + tmp = true, -- or fun(): boolean + tmp_name = 'tmp', + on_load = true, + on_quit = true, +} +} diff --git a/nvim/.config/nvim/after/plugin/telescope.lua b/nvim/.config/nvim/after/plugin/telescope.lua new file mode 100644 index 0000000..478904f --- /dev/null +++ b/nvim/.config/nvim/after/plugin/telescope.lua @@ -0,0 +1,16 @@ +require("telescope").setup{ + defaults = { + prompt_prefix = "$ ", + mappings = { + i = { + ["C-a"] = function() print("asdf") end + } + } + } +} + +require("telescope").load_extension("fzf") +require("telescope").load_extension("file_browser") +require("telescope").load_extension("neoclip") +require("telescope").load_extension("possession") +require("telescope").load_extension("repo") diff --git a/nvim/.config/nvim/after/plugin/treesitter.lua b/nvim/.config/nvim/after/plugin/treesitter.lua new file mode 100644 index 0000000..893cbaf --- /dev/null +++ b/nvim/.config/nvim/after/plugin/treesitter.lua @@ -0,0 +1,26 @@ +require('nvim-treesitter').setup({ + -- enable syntax highlighting + highlight = { + enable = true, + }, + -- enable indentation + indent = { enable = true }, + -- enable autotagging (w/ nvim-ts-autotag plugin) + autotag = { enable = true }, + -- ensure these language parsers are installed + ensure_installed = { + "json", + "yaml", + "html", + "css", + "markdown", + "bash", + "lua", + "vim", + "dockerfile", + "gitignore", + "python", + }, + -- auto install above language parsers + auto_install = true, +}) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 3fb0aa8..155e723 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -1,62 +1,2 @@ -require("plugins") -require("keybindings") -require("settings") -require("colorscheme") -require("lsp") -require("statusline") +require("clint") --- todo: move this to plugins.lua -require("telescope").setup{ - defaults = { - sorting_strategy = "ascending", - layout_strategy = "horizontal", - layout_config = { - prompt_position = "top", - }, - prompt_prefix = "$ ", - mappings = { - i = { - ["C-a"] = function() print("asdf") end - } - } - }, - pickers = { - live_grep = { - additional_args = function(opts) - return {"--hidden"} - end - }, - }, -} - -require("telescope").load_extension("fzf") -require("telescope").load_extension("file_browser") -require("telescope").load_extension("neoclip") -require("Comment").setup() -require("nvim-treesitter").setup({ - -- enable syntax highlighting - highlight = { - enable = true, - }, - -- enable indentation - indent = { enable = true }, - -- enable autotagging (w/ nvim-ts-autotag plugin) - autotag = { enable = true }, - -- ensure these language parsers are installed - ensure_installed = { - "json", - "yaml", - "html", - "css", - "markdown", - "bash", - "lua", - "vim", - "dockerfile", - "gitignore", - "python", - "sql", - }, - -- auto install above language parsers - auto_install = true, -}) diff --git a/nvim/.config/nvim/lua/colorscheme.lua b/nvim/.config/nvim/lua/clint/colorscheme.lua similarity index 100% rename from nvim/.config/nvim/lua/colorscheme.lua rename to nvim/.config/nvim/lua/clint/colorscheme.lua diff --git a/nvim/.config/nvim/lua/clint/completion.lua b/nvim/.config/nvim/lua/clint/completion.lua new file mode 100644 index 0000000..cd04840 --- /dev/null +++ b/nvim/.config/nvim/lua/clint/completion.lua @@ -0,0 +1,57 @@ +local cmp = require'cmp' +local capabilities = require('cmp_nvim_lsp').default_capabilities() + + cmp.setup({ + snippet = { + -- REQUIRED - you must specify a snippet engine + expand = function(args) + vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users. + require('luasnip').lsp_expand(args.body) -- For `luasnip` users. + end, + }, + window = { + -- completion = cmp.config.window.bordered(), + -- documentation = cmp.config.window.bordered(), + }, + mapping = cmp.mapping.preset.insert({ + [''] = cmp.mapping.scroll_docs(-4), + [''] = cmp.mapping.scroll_docs(4), + [''] = cmp.mapping.complete(), + [''] = cmp.mapping.abort(), + [''] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + }), + sources = cmp.config.sources({ + { name = 'nvim_lsp' }, + { name = 'luasnip' }, -- For luasnip users. + }, { + { name = 'buffer' }, + }) + }) + + -- Set configuration for specific filetype. + cmp.setup.filetype('gitcommit', { + sources = cmp.config.sources({ + { name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it. + }, { + { name = 'buffer' }, + }) + }) + + -- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore). + cmp.setup.cmdline({ '/', '?' }, { + mapping = cmp.mapping.preset.cmdline(), + sources = { + { name = 'buffer' } + } + }) + + -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). + cmp.setup.cmdline(':', { + mapping = cmp.mapping.preset.cmdline(), + sources = cmp.config.sources({ + { name = 'path' } + }, { + { name = 'cmdline' } + }) + }) + diff --git a/nvim/.config/nvim/lua/clint/init.lua b/nvim/.config/nvim/lua/clint/init.lua new file mode 100644 index 0000000..feda061 --- /dev/null +++ b/nvim/.config/nvim/lua/clint/init.lua @@ -0,0 +1,5 @@ +require("clint.plugins") +require("clint.keybindings") +require("clint.settings") +require("clint.colorscheme") +require("clint.lsp") diff --git a/nvim/.config/nvim/lua/clint/keybindings.lua b/nvim/.config/nvim/lua/clint/keybindings.lua new file mode 100644 index 0000000..1cd56a8 --- /dev/null +++ b/nvim/.config/nvim/lua/clint/keybindings.lua @@ -0,0 +1,62 @@ +-- Generic Keybindings for all files +-- +-- + +local keymap = vim.api.nvim_set_keymap +local default_ops = { noremap = true, silent = true } + +-- Quick escape insert mode +keymap('i', 'jk', '', default_ops) + +-- Delete single character without copying into register +keymap("n", "x", '"_x', default_ops) + +-- Window management +keymap("n", "sv", "v", default_ops) +keymap("n", "sh", "s", default_ops) +keymap("n", "se", "=", default_ops) +keymap("n", "sx", ":close", default_ops) + +-- Save, Save/Quit +keymap('n', '', ':w', default_ops) +keymap('n', '', ':wq', default_ops) + +-- Tab through open buffers +keymap('n', '[b', ':bp', default_ops) +keymap('n', ']b', ':bn', default_ops) + +-- Enter lines +keymap('n', '', 'o', default_ops) +keymap('n', '', 'O', default_ops) + +-- Folding +keymap('n', '', 'za', default_ops) + +-- Telescope stuff +keymap('n', 'ff', ':Telescope find_files hidden=true', default_ops) +keymap('n', 'gf', ':Telescope git_files', default_ops) +keymap('n', 'lg', ':Telescope live_grep', default_ops) +keymap('n', 'd', ':Telescope diagnostics', default_ops) +keymap('n', 'h', ':Telescope neoclip', default_ops) +keymap('n', 'fb', ':Telescope file_browser hidden=true', default_ops) + +-- Buffers +keymap('n', 'b', ':JABSOpen', default_ops) + +-- Shift up and down +keymap("v", "J", ":m '>+1gv=gv", default_ops) +keymap("v", "K", ":m '<-2gv=gv", default_ops) + +-- Keep centered +keymap("n", "", "zz", default_ops) +keymap("n", "", "zz", default_ops) +keymap("n", "n", "nzzzv", default_ops) +keymap("n", "N", "Nzzzv", default_ops) + +-- Yank to system clipboard +keymap("n", "y", [["+y]], default_ops) +keymap("v", "y", [["+y]], default_ops) +keymap("n", "Y", [["+Y]], default_ops) + +-- Replace the word the cursor is currently on +keymap("n", "s", [[:%s/\<\>//gI]], default_ops) diff --git a/nvim/.config/nvim/lua/clint/lsp.lua b/nvim/.config/nvim/lua/clint/lsp.lua new file mode 100644 index 0000000..c58146f --- /dev/null +++ b/nvim/.config/nvim/lua/clint/lsp.lua @@ -0,0 +1,66 @@ +local cmp = require'cmp' +local capabilities = require('cmp_nvim_lsp').default_capabilities() + +require'lspconfig'.jedi_language_server.setup{ + on_attach = + function() + vim.keymap.set("n", "K", vim.lsp.buf.hover, {buffer=0}) + vim.keymap.set("n", "gd", vim.lsp.buf.definition, {buffer=0}) + vim.keymap.set("n", "r", vim.lsp.buf.rename, {buffer=0}) + end +} + + cmp.setup({ + snippet = { + -- REQUIRED - you must specify a snippet engine + expand = function(args) + vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users. + require('luasnip').lsp_expand(args.body) -- For `luasnip` users. + end, + }, + window = { + -- completion = cmp.config.window.bordered(), + -- documentation = cmp.config.window.bordered(), + }, + mapping = cmp.mapping.preset.insert({ + [''] = cmp.mapping.scroll_docs(-4), + [''] = cmp.mapping.scroll_docs(4), + [''] = cmp.mapping.complete(), + [''] = cmp.mapping.abort(), + [''] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + }), + sources = cmp.config.sources({ + { name = 'nvim_lsp' }, + { name = 'luasnip' }, -- For luasnip users. + }, { + { name = 'buffer' }, + }) + }) + + -- Set configuration for specific filetype. + cmp.setup.filetype('gitcommit', { + sources = cmp.config.sources({ + { name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it. + }, { + { name = 'buffer' }, + }) + }) + + -- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore). + cmp.setup.cmdline({ '/', '?' }, { + mapping = cmp.mapping.preset.cmdline(), + sources = { + { name = 'buffer' } + } + }) + + -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). + cmp.setup.cmdline(':', { + mapping = cmp.mapping.preset.cmdline(), + sources = cmp.config.sources({ + { name = 'path' } + }, { + { name = 'cmdline' } + }) + }) + diff --git a/nvim/.config/nvim/lua/clint/plugins.lua b/nvim/.config/nvim/lua/clint/plugins.lua new file mode 100644 index 0000000..622490d --- /dev/null +++ b/nvim/.config/nvim/lua/clint/plugins.lua @@ -0,0 +1,105 @@ +vim.cmd [[packadd packer.nvim]] + +return require('packer').startup(function(use) + -- Packer can manage itself + use('wbthomason/packer.nvim') + + -- LSP + use('neovim/nvim-lspconfig') + use('hrsh7th/cmp-nvim-lsp') + use('hrsh7th/cmp-nvim-lua') + use('hrsh7th/cmp-buffer') + use('hrsh7th/cmp-path') + use('hrsh7th/nvim-cmp') + use('saadparwaiz1/cmp_luasnip') + + -- colorschemes + use('ayu-theme/ayu-vim') + use('morhetz/gruvbox') + use('dikiaap/minimalist') + use('jacoborus/tender.vim') + use('jpo/vim-railscasts-theme') + use('rainux/vim-desert-warm-256') + use('ajmwagar/vim-deus') + + -- airline + use('vim-airline/vim-airline') + use('vim-airline/vim-airline-themes') + + -- Git + use('tpope/vim-fugitive') + + -- Sessions + -- use('tpope/vim-obsession') + use { + 'jedrzejboczar/possession.nvim', + requires = { 'nvim-lua/plenary.nvim' }, + } + + -- NerdTree stuff + use('preservim/nerdtree') + use('Xuyuanp/nerdtree-git-plugin') + use('ryanoasis/vim-devicons') + + -- SuperTab + use('ervandew/supertab') + + -- Slime, for tmux repl-ing + use('jpalardy/vim-slime') + + -- Telescope, fuzzy finding + use('nvim-lua/plenary.nvim') + use('nvim-telescope/telescope.nvim') + use{'nvim-telescope/telescope-fzf-native.nvim', run = 'make' } + use( "nvim-telescope/telescope-file-browser.nvim") + + -- Treesitter + use{'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' } + + -- Devicons + use('kyazdani42/nvim-web-devicons') + + -- Registry history + use { + "AckslD/nvim-neoclip.lua", + requires = { + {'kkharji/sqlite.lua', module = 'sqlite'}, + {'nvim-telescope/telescope.nvim'}, + }, + config = function() + require('neoclip').setup({ + enable_persistent_history = true, + continuous_sync = true + } + ) + end, + } + + -- Buffers + use('matbme/JABS.nvim') + require("jabs").setup {} + + -- Comments + use { + 'numToStr/Comment.nvim', + config = function() + require('Comment').setup() + end + } + + -- Git Repo Telescope + use{'cljoly/telescope-repo.nvim'} + + -- Greeter + use { + 'goolord/alpha-nvim', + requires = { 'nvim-tree/nvim-web-devicons' }, + config = function () + require'alpha'.setup(require'alpha.themes.startify'.config) + end + } + + end +) + + diff --git a/nvim/.config/nvim/lua/settings.lua b/nvim/.config/nvim/lua/clint/settings.lua similarity index 91% rename from nvim/.config/nvim/lua/settings.lua rename to nvim/.config/nvim/lua/clint/settings.lua index 1688780..5202b91 100644 --- a/nvim/.config/nvim/lua/settings.lua +++ b/nvim/.config/nvim/lua/clint/settings.lua @@ -4,9 +4,12 @@ local settings = vim.opt settings.relativenumber = true settings.number = true +-- Scrolling +settings.scrolloff = 10 + -- Searching settings.incsearch = true -settings.hls = true +settings.hls = false -- Indentation (move to python specific file) settings.tabstop = 4 diff --git a/nvim/.config/nvim/plugin/packer_compiled.lua b/nvim/.config/nvim/plugin/packer_compiled.lua index 475005f..7308a37 100644 --- a/nvim/.config/nvim/plugin/packer_compiled.lua +++ b/nvim/.config/nvim/plugin/packer_compiled.lua @@ -74,159 +74,224 @@ end time([[try_loadstring definition]], false) time([[Defining packer_plugins]], true) _G.packer_plugins = { + ["Comment.nvim"] = { + config = { "\27LJ\2\n5\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\fComment\frequire\0" }, + loaded = true, + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/Comment.nvim", + url = "https://github.com/numToStr/Comment.nvim" + }, + ["JABS.nvim"] = { + loaded = true, + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/JABS.nvim", + url = "https://github.com/matbme/JABS.nvim" + }, ["ayu-vim"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/ayu-vim", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/ayu-vim", url = "https://github.com/ayu-theme/ayu-vim" }, ["cmp-buffer"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/cmp-buffer", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/cmp-buffer", url = "https://github.com/hrsh7th/cmp-buffer" }, ["cmp-nvim-lsp"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", url = "https://github.com/hrsh7th/cmp-nvim-lsp" }, ["cmp-nvim-lua"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", url = "https://github.com/hrsh7th/cmp-nvim-lua" }, ["cmp-path"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/cmp-path", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/cmp-path", url = "https://github.com/hrsh7th/cmp-path" }, cmp_luasnip = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/cmp_luasnip", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/cmp_luasnip", url = "https://github.com/saadparwaiz1/cmp_luasnip" }, gruvbox = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/gruvbox", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/gruvbox", url = "https://github.com/morhetz/gruvbox" }, minimalist = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/minimalist", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/minimalist", url = "https://github.com/dikiaap/minimalist" }, nerdtree = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/nerdtree", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/nerdtree", url = "https://github.com/preservim/nerdtree" }, ["nerdtree-git-plugin"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/nerdtree-git-plugin", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/nerdtree-git-plugin", url = "https://github.com/Xuyuanp/nerdtree-git-plugin" }, ["nvim-cmp"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/nvim-cmp", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/nvim-cmp", url = "https://github.com/hrsh7th/nvim-cmp" }, ["nvim-lspconfig"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", url = "https://github.com/neovim/nvim-lspconfig" }, ["nvim-neoclip.lua"] = { - config = { "\27LJ\2\n5\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\fneoclip\frequire\0" }, + config = { "\27LJ\2\nh\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\2\20continuous_sync\2\30enable_persistent_history\2\nsetup\fneoclip\frequire\0" }, loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/nvim-neoclip.lua", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/nvim-neoclip.lua", url = "https://github.com/AckslD/nvim-neoclip.lua" }, + ["nvim-treesitter"] = { + loaded = true, + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/nvim-treesitter", + url = "https://github.com/nvim-treesitter/nvim-treesitter" + }, ["nvim-web-devicons"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", url = "https://github.com/kyazdani42/nvim-web-devicons" }, ["packer.nvim"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/packer.nvim", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/packer.nvim", url = "https://github.com/wbthomason/packer.nvim" }, ["plenary.nvim"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/plenary.nvim", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/plenary.nvim", url = "https://github.com/nvim-lua/plenary.nvim" }, + ["possession.nvim"] = { + loaded = true, + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/possession.nvim", + url = "https://github.com/jedrzejboczar/possession.nvim" + }, + ["sqlite.lua"] = { + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/Users/clint/.local/share/nvim/site/pack/packer/opt/sqlite.lua", + url = "https://github.com/kkharji/sqlite.lua" + }, supertab = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/supertab", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/supertab", url = "https://github.com/ervandew/supertab" }, ["telescope-file-browser.nvim"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/telescope-file-browser.nvim", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/telescope-file-browser.nvim", url = "https://github.com/nvim-telescope/telescope-file-browser.nvim" }, ["telescope-fzf-native.nvim"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim" }, + ["telescope-repo.nvim"] = { + loaded = true, + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/telescope-repo.nvim", + url = "https://github.com/cljoly/telescope-repo.nvim" + }, ["telescope.nvim"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/telescope.nvim", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/telescope.nvim", url = "https://github.com/nvim-telescope/telescope.nvim" }, ["tender.vim"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/tender.vim", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/tender.vim", url = "https://github.com/jacoborus/tender.vim" }, ["vim-airline"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/vim-airline", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/vim-airline", url = "https://github.com/vim-airline/vim-airline" }, ["vim-airline-themes"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/vim-airline-themes", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/vim-airline-themes", url = "https://github.com/vim-airline/vim-airline-themes" }, ["vim-desert-warm-256"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/vim-desert-warm-256", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/vim-desert-warm-256", url = "https://github.com/rainux/vim-desert-warm-256" }, ["vim-deus"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/vim-deus", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/vim-deus", url = "https://github.com/ajmwagar/vim-deus" }, ["vim-devicons"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/vim-devicons", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/vim-devicons", url = "https://github.com/ryanoasis/vim-devicons" }, ["vim-fugitive"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/vim-fugitive", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/vim-fugitive", url = "https://github.com/tpope/vim-fugitive" }, ["vim-railscasts-theme"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/vim-railscasts-theme", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/vim-railscasts-theme", url = "https://github.com/jpo/vim-railscasts-theme" }, ["vim-slime"] = { loaded = true, - path = "/Users/clintmccay/.local/share/nvim/site/pack/packer/start/vim-slime", + path = "/Users/clint/.local/share/nvim/site/pack/packer/start/vim-slime", url = "https://github.com/jpalardy/vim-slime" } } time([[Defining packer_plugins]], false) +local module_lazy_loads = { + ["^sqlite"] = "sqlite.lua" +} +local lazy_load_called = {['packer.load'] = true} +local function lazy_load_module(module_name) + local to_load = {} + if lazy_load_called[module_name] then return nil end + lazy_load_called[module_name] = true + for module_pat, plugin_name in pairs(module_lazy_loads) do + if not _G.packer_plugins[plugin_name].loaded and string.match(module_name, module_pat) then + to_load[#to_load + 1] = plugin_name + end + end + + if #to_load > 0 then + require('packer.load')(to_load, {module = module_name}, _G.packer_plugins) + local loaded_mod = package.loaded[module_name] + if loaded_mod then + return function(modname) return loaded_mod end + end + end +end + +if not vim.g.packer_custom_loader_enabled then + table.insert(package.loaders, 1, lazy_load_module) + vim.g.packer_custom_loader_enabled = true +end + -- Config for: nvim-neoclip.lua time([[Config for nvim-neoclip.lua]], true) -try_loadstring("\27LJ\2\n5\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\fneoclip\frequire\0", "config", "nvim-neoclip.lua") +try_loadstring("\27LJ\2\nh\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\2\20continuous_sync\2\30enable_persistent_history\2\nsetup\fneoclip\frequire\0", "config", "nvim-neoclip.lua") time([[Config for nvim-neoclip.lua]], false) +-- Config for: Comment.nvim +time([[Config for Comment.nvim]], true) +try_loadstring("\27LJ\2\n5\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\fComment\frequire\0", "config", "Comment.nvim") +time([[Config for Comment.nvim]], false) _G._packer.inside_compile = false if _G._packer.needs_bufread == true then