summary refs log tree commit diff
path: root/.vim/plugin
diff options
context:
space:
mode:
Diffstat (limited to '.vim/plugin')
-rw-r--r--.vim/plugin/fuzz.vim16
-rw-r--r--.vim/plugin/hard.vim65
-rw-r--r--.vim/plugin/line.vim174
-rw-r--r--.vim/plugin/packer_compiled.vim389
-rw-r--r--.vim/plugin/zettel.vim43
5 files changed, 215 insertions, 472 deletions
diff --git a/.vim/plugin/fuzz.vim b/.vim/plugin/fuzz.vim
deleted file mode 100644
index 0e1cb55..0000000
--- a/.vim/plugin/fuzz.vim
+++ /dev/null
@@ -1,16 +0,0 @@
-" skip this, we have vim-clap now!!!
-finish
-
-if exists('g:loaded_fuzz')
-  finish
-endif
-let g:loaded_fuzz = 1
-let g:fuzz_prompt = '❯'
-
-nmap <silent> ff :call fuzz#files()<CR>
-nmap <silent> fb :call fuzz#buffers()<CR>
-nmap <silent> fc :call fuzz#commands()<CR>
-nmap <silent> fr :Rg<space>
-
-command! -nargs=* -complete=custom,fuzz#cmdoptions Fuzz :call fuzz#exec(<f-args>)
-command! -nargs=* Rg :call fuzz#rg(<f-args>)
diff --git a/.vim/plugin/hard.vim b/.vim/plugin/hard.vim
deleted file mode 100644
index 6f82e37..0000000
--- a/.vim/plugin/hard.vim
+++ /dev/null
@@ -1,65 +0,0 @@
-" hardmode == not using arrow keys
-
-function! s:bail()
-    let l:msg = 'E0X: Use hjkl'
-    echohl ErrorMsg | echo l:msg | echohl None
-endfunction
-
-function! s:enable_hardmode(bang)
-  if !a:bang
-    try
-      " map arrow keys to more useful actions
-      " https://coderoncode.com/posts/vim-is-the-perfect-ide
-      nmap R<up> :resize +2<CR>
-      nmap R<down> :resize -2<CR>
-      nmap R<left> :vertical resize +2<CR>
-      nmap R<right> :vertical resize +2<CR>
-
-      nmap W<up> :wincmd k<CR>
-      nmap W<down> :wincmd j<CR>
-      nmap W<left> :wincmd h<CR>
-      nmap W<right> :wincmd l<CR>
-
-      nmap Wm<up> :wincmd K<CR>
-      nmap Wm<down> :wincmd J<CR>
-      nmap Wm<left> :wincmd H<CR>
-      nmap Wm<right> :wincmd L<CR>
-
-      " or bail on them altogether
-      nmap <up> :call <SID>bail()<CR>
-      nmap <down> :call <SID>bail()<CR>
-      nmap <left> :call <SID>bail()<CR>
-      nmap <right> :call <SID>bail()<CR>
-
-      vmap <up> :call <SID>bail()<CR>
-      vmap <down> :call <SID>bail()<CR>
-      vmap <left> :call <SID>bail()<CR>
-      vmap <right> :call <SID>bail()<CR>
-
-      imap <up> <esc>:call <SID>bail()<CR>
-      imap <down> <esc>:call <SID>bail()<CR>
-      imap <left> <esc>:call <SID>bail()<CR>
-      imap <right> <esc>:call <SID>bail()<CR>
-    catch
-    endtry
-  else
-    try
-      nunmap <up>
-      nunmap <down>
-      nunmap <left>
-      nunmap <right>
-      vunmap <up>
-      vunmap <down>
-      vunmap <left>
-      vunmap <right>
-      iunmap <up>
-      iunmap <down>
-      iunmap <left>
-      iunmap <right>
-    catch
-    endtry
-  endif
-endfunction
-
-call s:enable_hardmode(0)
-command! -bang Hardmode call s:enable_hardmode(<bang>0)
diff --git a/.vim/plugin/line.vim b/.vim/plugin/line.vim
deleted file mode 100644
index eed5224..0000000
--- a/.vim/plugin/line.vim
+++ /dev/null
@@ -1,174 +0,0 @@
-finish
-
-let g:lightline = {}
-
-let g:lightline.enable = { 'statusline': 1, 'tabline': 0 }
-
-let g:lightline.mode_map = {
-\   'n' : 'N',
-\   'i' : 'I',
-\   'R' : 'R',
-\   'v' : 'V',
-\   'V' : 'V-LINE',
-\   "\<C-v>": 'V-BLOCK',
-\   'c' : '>',
-\   's' : 'SELECT',
-\   'S' : 'S-LINE',
-\   "\<C-s>": 'S-BLOCK',
-\   't': 'T',
-\ }
-
-let g:lightline.active = {
-\   'left': [
-\       ['mode', 'paste'],
-\       ['filename', 'vista'],
-\       ['neomake', 'ctags', 'obsession'],
-\   ],
-\   'right': [
-\       ['filetype', 'fileencoding', 'fileformat'],
-\       ['indent', 'bufnum', 'lineinfo', 'percent'],
-\   ],
-\ }
-
-set showtabline=0
-let g:bufferline_echo = 0
-let g:bufferline_show_bufnr = 0
-" let g:bufferline_separator = ' '
-let g:bufferline_active_buffer_left = ''
-let g:bufferline_active_buffer_right = ''
-" let g:bufferline_unamed_buffer = '[no name]'
-let g:bufferline_fname_mod = ':t:s?^$?[no name]?'
-let g:lightline.tabline = {
-\   'right': [
-\       ['tabs'],
-\       ['porcelain'],
-\   ],
-\ }
-let g:lightline.tab = {
-\   'active': ['tabnum'],
-\   'inactive': ['tabnum'],
-\ }
-
-let g:lightline.component = {
-\   'lineinfo': ' %l:%v',
-\   'filetype': "%{winwidth(0) > 70 ? (strlen(&filetype) ? &filetype : 'no ft') : ''}",
-\   'dir': "%{substitute(expand('%:p:h'), $HOME, '~', '')}",
-\ }
-
-let g:lightline.component_function = {
-\   'filename': 'LightLineFilename',
-\   'bufnum': 'LightLineBufnum',
-\   'fileformat': 'LightLineFileformat',
-\   'fileencoding': 'LightLineFileencoding',
-\   'mode': 'LightLineMode',
-\   'vista': 'LightLineVista',
-\   'o': 'LightLineO',
-\   'porcelain': 'LightLinePorcelain',
-\   'indent': 'LightLineIndent',
-\ }
-
-" \ 'separator': { 'left': "\ue0b8", 'right': "\ue0be" },
-" \ 'subseparator': { 'left': "\ue0b9", 'right': "\ue0b9" },
-" \ 'tabline_separator': { 'left': "\ue0bc", 'right': "\ue0ba" },
-" \ 'tabline_subseparator': { 'left': "\ue0bb", 'right': "\ue0bb" },
-" \
-
-let g:lightline.component_expand = {}
-let g:lightline.component_type = {}
-
-
-" Modified {{{
-hi ModifiedColor ctermfg=196 guifg=#ff0000 gui=bold
-function! LightLineModified()
-  return &modified ? '+' : &modifiable ? '' : '-'
-endfunction
-" }}}
-
-" Readonly {{{
-function! LightLineReadonly()
-  return &filetype !~? 'help\|vimfiler\|gundo' && &readonly ? '' : ''
-endfunction
-" }}}
-
-" Filename {{{
-function! LightLineFilename()
-  return ('' !=? LightLineReadonly() ? LightLineReadonly() . ' ' : '') .
-       \ (&filetype ==# 'vimfiler' ? vimfiler#get_status_string() :
-       \  &filetype ==# 'unite' ? unite#get_status_string() :
-       \  &filetype ==# 'vimshell' ? vimshell#get_status_string() :
-       \ '' !=? expand('%:t') ? expand('%:t') : '[No Name]') .
-       \ ('' !=? LightLineModified() ? ' ' . LightLineModified() : '')
-endfunction
-" }}}
-
-" Bufnum {{{
-function! LightLineBufnum()
-  let l:nbufs = len(getbufinfo({'buflisted':1}))
-  return '% '. bufnr('%') . '('.l:nbufs.')' . (tabpagenr() != 1 ? ':'. tabpagenr() : '')
-endfunction
-" }}}
-
-" Fileformat {{{
-function! LightLineFileformat()
-  if (&fileformat == 'unix')
-    return ''
-  endif
-  return winwidth(0) > 70 ? &fileformat : ''
-endfunction
-" }}}
-
-" Fileencoding {{{
-function! LightLineFileencoding()
-  if (&fileencoding == 'utf-8')
-    return ''
-  endif
-  return winwidth(0) > 70 ? (strlen(&fileencoding) ? &fileencoding : &encoding) : ''
-endfunction
-" }}}
-
-" Mode {{{
-function! LightLineMode()
-  return winwidth(0) > 60 ? (
-          \ expand('%:t') ==# '__Tagbar__' ? 'Tagbar':
-          \ &filetype ==# 'vimfiler' ? 'VimFiler' :
-          \ &filetype ==# 'vimshell' ? 'VimShell' :
-          \ &filetype ==# 'dirvish' ? 'DIRVISH' :
-          \ lightline#mode() )
-          \ : ''
-endfunction
-" }}}
-
-" Indent {{{
-function! LightLineIndent()
-  return '' .
-       \ (&expandtab == 1 ? '␣' : '→') . ' ' .
-       \ 'ts=' . &tabstop .
-       \ ' ' .
-       \ 'sw=' . &shiftwidth
-endfunction
-" }}}
-
-" Vista {{{
-function! LightLineVista()
-  let l:sym = get(b:, 'vista_nearest_method_or_function', '')
-  return empty(l:sym) ? '' : g:vista#renderer#icons.function . ' ' . l:sym
-endfunction
-" }}}
-
-" Porcelain {{{
-function! LightLinePorcelain()
-  if &buftype !=# 'terminal'
-    let gitinfo = system('porcelain -no-color -path=' . expand('%:h'))
-    return (v:shell_error ? '' : gitinfo)
-  endif
-endfunction
-" }}}
-
-function! LightLineO()
-  let l:circ_empty="\u25CB"
-  let l:circ_quart="\u25D4"
-  let l:circ_half="\u25D1"
-  let l:circ_threequart="\u25D5"
-  let l:circ_full="\u25CF"
-  return ('' != LightLineModified() ? l:circ_full : l:circ_empty)
-endfunction
diff --git a/.vim/plugin/packer_compiled.vim b/.vim/plugin/packer_compiled.vim
index a40dddd..a663292 100644
--- a/.vim/plugin/packer_compiled.vim
+++ b/.vim/plugin/packer_compiled.vim
@@ -1,211 +1,252 @@
 " Automatically generated packer.nvim plugin loader code
 
-if !has('nvim')
+if !has('nvim-0.5')
+  echohl WarningMsg
+  echom "Invalid Neovim version for packer.nvim!"
+  echohl None
   finish
 endif
 
+packadd packer.nvim
+
+try
+
 lua << END
-local plugins = {
-  ["emmet-vim"] = {
-    loaded = false,
-    only_sequence = false,
-    only_setup = false,
-    path = "/home/robert/.local/share/nvim/site/pack/packer/opt/emmet-vim"
+local package_path_str = "/tmp/robert/.cache/nvim/packer_hererocks/2.0.5/share/lua/5.1/?.lua;/tmp/robert/.cache/nvim/packer_hererocks/2.0.5/share/lua/5.1/?/init.lua;/tmp/robert/.cache/nvim/packer_hererocks/2.0.5/lib/luarocks/rocks-5.1/?.lua;/tmp/robert/.cache/nvim/packer_hererocks/2.0.5/lib/luarocks/rocks-5.1/?/init.lua"
+local install_cpath_pattern = "/tmp/robert/.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
+
+local function try_loadstring(s, component, name)
+  local success, result = pcall(loadstring(s))
+  if not success then
+    print('Error running ' .. component .. ' for ' .. name)
+    error(result)
+  end
+  return result
+end
+
+_G.packer_plugins = {
+  ["astronauta.nvim"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/astronauta.nvim"
+  },
+  ["completion-buffers"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/completion-buffers"
+  },
+  ["completion-nvim"] = {
+    config = { "require('plugins._completion')" },
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/completion-nvim"
+  },
+  ["completion-treesitter"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/completion-treesitter"
+  },
+  ["gentoo-syntax"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/gentoo-syntax"
+  },
+  ["git-messenger.vim"] = {
+    config = { "require('plugins._git-messenger')" },
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/git-messenger.vim"
   },
   ["goyo.vim"] = {
     commands = { "Goyo" },
+    config = { "require('plugins._goyo')" },
     loaded = false,
-    only_sequence = false,
-    only_setup = false,
+    needs_bufread = false,
     path = "/home/robert/.local/share/nvim/site/pack/packer/opt/goyo.vim"
   },
+  ["lexima.vim"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/lexima.vim"
+  },
   ["limelight.vim"] = {
     commands = { "Limelight" },
+    config = { "require('plugins._limelight')" },
     loaded = false,
-    only_sequence = false,
-    only_setup = false,
+    needs_bufread = false,
     path = "/home/robert/.local/share/nvim/site/pack/packer/opt/limelight.vim"
   },
-  ["vim-easy-align"] = {
-    commands = { "EasyAlign" },
+  ["nvim-colorizer.lua"] = {
+    config = { "require('plugins._colorizer')" },
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/nvim-colorizer.lua"
+  },
+  ["nvim-lightbulb"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/nvim-lightbulb"
+  },
+  ["nvim-lspconfig"] = {
+    config = { "require('plugins._lsp')" },
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/nvim-lspconfig"
+  },
+  ["nvim-treesitter"] = {
+    config = { "require('plugins._treesitter')" },
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/nvim-treesitter"
+  },
+  ["nvim-treesitter-refactor"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/nvim-treesitter-refactor"
+  },
+  ["packer.nvim"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/packer.nvim"
+  },
+  ["plenary.nvim"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/plenary.nvim"
+  },
+  ["popup.nvim"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/popup.nvim"
+  },
+  ["telescope-fzf-writer.nvim"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/telescope-fzf-writer.nvim"
+  },
+  ["telescope.nvim"] = {
+    config = { "require('plugins._telescope')" },
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/telescope.nvim"
+  },
+  ultisnips = {
+    config = { "require('plugins._ultisnips')" },
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/ultisnips"
+  },
+  ["vim-commentary"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-commentary"
+  },
+  ["vim-cue"] = {
     loaded = false,
-    only_sequence = false,
-    only_setup = false,
-    path = "/home/robert/.local/share/nvim/site/pack/packer/opt/vim-easy-align"
+    needs_bufread = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/opt/vim-cue"
+  },
+  ["vim-dirvish"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-dirvish"
+  },
+  ["vim-easy-align"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-easy-align"
+  },
+  ["vim-editorconfig"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-editorconfig"
+  },
+  ["vim-github-link"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-github-link"
+  },
+  ["vim-indent-guides"] = {
+    config = { "require('plugins._indent-guides')" },
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-indent-guides"
+  },
+  ["vim-indent-object"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-indent-object"
   },
   ["vim-markdown"] = {
+    config = { "require('plugins._markdown')" },
     loaded = false,
-    only_sequence = false,
-    only_setup = false,
+    needs_bufread = true,
     path = "/home/robert/.local/share/nvim/site/pack/packer/opt/vim-markdown"
   },
   ["vim-markdown-folding"] = {
     loaded = false,
-    only_sequence = false,
-    only_setup = false,
+    needs_bufread = true,
     path = "/home/robert/.local/share/nvim/site/pack/packer/opt/vim-markdown-folding"
   },
+  ["vim-polyglot"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-polyglot"
+  },
+  ["vim-repeat"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-repeat"
+  },
+  ["vim-signify"] = {
+    config = { "require('plugins._signify')" },
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-signify"
+  },
+  ["vim-sneak"] = {
+    config = { "vim.g['sneak#label'] = true" },
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-sneak"
+  },
+  ["vim-snippets"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-snippets"
+  },
+  ["vim-surround"] = {
+    loaded = true,
+    path = "/home/robert/.local/share/nvim/site/pack/packer/start/vim-surround"
+  },
   vimtex = {
+    config = { "require('plugins._vimtex')" },
     loaded = false,
-    only_sequence = false,
-    only_setup = false,
+    needs_bufread = true,
     path = "/home/robert/.local/share/nvim/site/pack/packer/opt/vimtex"
   }
 }
 
-local function handle_bufread(names)
-  for _, name in ipairs(names) do
-    local path = plugins[name].path
-    for _, dir in ipairs({ 'ftdetect', 'ftplugin', 'after/ftdetect', 'after/ftplugin' }) do
-      if #vim.fn.finddir(dir, path) > 0 then
-        vim.cmd('doautocmd BufRead')
-        return
-      end
-    end
-  end
-end
-
-_packer_load = nil
-
-local function handle_after(name, before)
-  local plugin = plugins[name]
-  plugin.load_after[before] = nil
-  if next(plugin.load_after) == nil then
-    _packer_load({name}, {})
-  end
-end
-
-_packer_load = function(names, cause)
-  local some_unloaded = false
-  for _, name in ipairs(names) do
-    if not plugins[name].loaded then
-      some_unloaded = true
-      break
-    end
-  end
-
-  if not some_unloaded then return end
-
-  local fmt = string.format
-  local del_cmds = {}
-  local del_maps = {}
-  for _, name in ipairs(names) do
-    if plugins[name].commands then
-      for _, cmd in ipairs(plugins[name].commands) do
-        del_cmds[cmd] = true
-      end
-    end
-
-    if plugins[name].keys then
-      for _, key in ipairs(plugins[name].keys) do
-        del_maps[key] = true
-      end
-    end
-  end
-
-  for cmd, _ in pairs(del_cmds) do
-    vim.cmd('silent! delcommand ' .. cmd)
-  end
-
-  for key, _ in pairs(del_maps) do
-    vim.cmd(fmt('silent! %sunmap %s', key[1], key[2]))
-  end
-
-  for _, name in ipairs(names) do
-    if not plugins[name].loaded then
-      vim.cmd('packadd ' .. name)
-      if plugins[name].config then
-        for _i, config_line in ipairs(plugins[name].config) do
-          loadstring(config_line)()
-        end
-      end
-
-      if plugins[name].after then
-        for _, after_name in ipairs(plugins[name].after) do
-          handle_after(after_name, name)
-          vim.cmd('redraw')
-        end
-      end
-
-      plugins[name].loaded = true
-    end
-  end
-
-  handle_bufread(names)
-
-  if cause.cmd then
-    local lines = cause.l1 == cause.l2 and '' or (cause.l1 .. ',' .. cause.l2)
-    vim.cmd(fmt('%s%s%s %s', lines, cause.cmd, cause.bang, cause.args))
-  elseif cause.keys then
-    local keys = cause.keys
-    local extra = ''
-    while true do
-      local c = vim.fn.getchar(0)
-      if c == 0 then break end
-      extra = extra .. vim.fn.nr2char(c)
-    end
-
-    if cause.prefix then
-      local prefix = vim.v.count and vim.v.count or ''
-      prefix = prefix .. '"' .. vim.v.register .. cause.prefix
-      if vim.fn.mode('full') == 'no' then
-        if vim.v.operator == 'c' then
-          prefix = '' .. prefix
-        end
-
-        prefix = prefix .. vim.v.operator
-      end
-
-      vim.fn.feedkeys(prefix, 'n')
-    end
-
-    -- NOTE: I'm not sure if the below substitution is correct; it might correspond to the literal
-    -- characters \<Plug> rather than the special <Plug> key.
-    vim.fn.feedkeys(string.gsub(string.gsub(cause.keys, '^<Plug>', '\\<Plug>') .. extra, '<[cC][rR]>', '\r'))
-  elseif cause.event then
-    vim.cmd(fmt('doautocmd <nomodeline> %s', cause.event))
-  elseif cause.ft then
-    vim.cmd(fmt('doautocmd <nomodeline> %s FileType %s', 'filetypeplugin', cause.ft))
-    vim.cmd(fmt('doautocmd <nomodeline> %s FileType %s', 'filetypeindent', cause.ft))
-  end
-end
-
--- Runtimepath customization
-
--- Pre-load configuration
--- Post-load configuration
--- Config for: nvim-treesitter
-loadstring("\27LJ\1\2/\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\20conf.treesitter\frequire\0")()
+-- Config for: telescope.nvim
+require('plugins._telescope')
+-- Config for: completion-nvim
+require('plugins._completion')
 -- Config for: nvim-colorizer.lua
-loadstring("\27LJ\1\2z\0\0\3\0\4\0\b4\0\0\0%\1\1\0>\0\2\0027\0\2\0)\1\0\0003\2\3\0>\0\3\1G\0\1\0\1\0\6\vrgb_fn\2\tname\2\rRRGGBBAA\1\vhsl_fn\2\tmode\15background\vRRGGBB\2\nsetup\14colorizer\frequire\0")()
--- Config for: galaxyline.nvim
-loadstring("\27LJ\1\2$\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\tline\frequire\0")()
+require('plugins._colorizer')
+-- Config for: nvim-treesitter
+require('plugins._treesitter')
+-- Config for: vim-indent-guides
+require('plugins._indent-guides')
+-- Config for: vim-signify
+require('plugins._signify')
+-- Config for: git-messenger.vim
+require('plugins._git-messenger')
+-- Config for: vim-sneak
+vim.g['sneak#label'] = true
+-- Config for: ultisnips
+require('plugins._ultisnips')
 -- Config for: nvim-lspconfig
-loadstring("\27LJ\1\2(\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\rconf.lsp\frequire\0")()
--- Config for: telescope.nvim
-loadstring("\27LJ\1\2.\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\19conf.telescope\frequire\0")()
--- Conditional loads
--- Load plugins in order defined by `after`
+require('plugins._lsp')
+
+-- Command lazy-loads
+vim.cmd [[command! -nargs=* -range -bang -complete=file Limelight lua require("packer.load")({'limelight.vim'}, { cmd = "Limelight", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
+vim.cmd [[command! -nargs=* -range -bang -complete=file Goyo lua require("packer.load")({'goyo.vim'}, { cmd = "Goyo", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
+
+vim.cmd [[augroup packer_load_aucmds]]
+vim.cmd [[au!]]
+  -- Filetype lazy-loads
+vim.cmd [[au FileType markdown ++once lua require("packer.load")({'vim-markdown-folding', 'vim-markdown'}, { ft = "markdown" }, _G.packer_plugins)]]
+vim.cmd [[au FileType cue ++once lua require("packer.load")({'vim-cue'}, { ft = "cue" }, _G.packer_plugins)]]
+vim.cmd [[au FileType latex ++once lua require("packer.load")({'vimtex'}, { ft = "latex" }, _G.packer_plugins)]]
+vim.cmd [[au FileType tex ++once lua require("packer.load")({'vimtex'}, { ft = "tex" }, _G.packer_plugins)]]
+vim.cmd("augroup END")
+vim.cmd [[augroup filetypedetect]]
+vim.cmd [[source /home/robert/.local/share/nvim/site/pack/packer/opt/vimtex/ftdetect/tex.vim]]
+vim.cmd [[source /home/robert/.local/share/nvim/site/pack/packer/opt/vim-markdown/ftdetect/markdown.vim]]
+vim.cmd [[source /home/robert/.local/share/nvim/site/pack/packer/opt/vim-cue/ftdetect/cue.vim]]
+vim.cmd("augroup END")
 END
 
-function! s:load(names, cause) abort
-call luaeval('_packer_load(_A[1], _A[2])', [a:names, a:cause])
-endfunction
-
-
-" Command lazy-loads
-command! -nargs=* -range -bang -complete=file Goyo call s:load(['goyo.vim'], { "cmd": "Goyo", "l1": <line1>, "l2": <line2>, "bang": <q-bang>, "args": <q-args> })
-command! -nargs=* -range -bang -complete=file Limelight call s:load(['limelight.vim'], { "cmd": "Limelight", "l1": <line1>, "l2": <line2>, "bang": <q-bang>, "args": <q-args> })
-command! -nargs=* -range -bang -complete=file EasyAlign call s:load(['vim-easy-align'], { "cmd": "EasyAlign", "l1": <line1>, "l2": <line2>, "bang": <q-bang>, "args": <q-args> })
-
-" Keymap lazy-loads
-
-augroup packer_load_aucmds
-  au!
-  " Filetype lazy-loads
-  au FileType markdown ++once call s:load(['vim-markdown', 'vim-markdown-folding'], { "ft": "markdown" })
-  au FileType html ++once call s:load(['emmet-vim'], { "ft": "html" })
-  au FileType latex ++once call s:load(['vimtex'], { "ft": "latex" })
-  au FileType tex ++once call s:load(['vimtex'], { "ft": "tex" })
-  " Event lazy-loads
-augroup END
+catch
+  echohl ErrorMsg
+  echom "Error in packer_compiled: " .. v:exception
+  echom "Please check your config for correctness"
+  echohl None
+endtry
diff --git a/.vim/plugin/zettel.vim b/.vim/plugin/zettel.vim
deleted file mode 100644
index 948bb91..0000000
--- a/.vim/plugin/zettel.vim
+++ /dev/null
@@ -1,43 +0,0 @@
-" markdown extended for bullet journaling and personal wiki-keeping
-
-if exists('g:loaded_zettel')
-	finish
-endif
-let g:loaded_zettel = 1
-
-if !exists('g:zettel_root')
-	let g:zettel_root = expand($HOME.'/wiki')
-endif
-
-if !exists('g:zettel_create_on_empty')
-	let g:zettel_create_on_emtpy = 1
-endif
-
-if v:progname =~ 'vimdiff'
-	let g:zettel_create_on_empty = 0
-endif
-
-function! <SID>make_new_zettel()
-	let l:pastebackup = &paste
-	set nopaste
-
-	0 put ='---'
-	read !yq n date $(date -Iseconds) | yq w - title "%:t:r"
-	put ='---'
-	call feedkeys('Go', 'n')
-
-	if pastebackup == 0
-		set nopaste
-	endif
-endfunction
-
-command! -nargs=0 NewZettel call <SID>make_new_zettel()
-
-augroup NewZettel
-	au!
-	au BufNewFile *.md
-		\ if expand('%:p') =~# fnameescape(g:zettel_root).'/.*.md' |
-		\ 	call <SID>make_new_zettel() |
-		\ endif
-augroup END
-