neovim

Personal neovim configuration files
git clone git://gtms.dev/neovim
Log | Files | Refs

first_load.lua (618B)


      1 local install_path = vim.fn.stdpath('data') .. '/site/pack/paqs'
      2 
      3 local name = function(repo)
      4   return string.match(repo, '%w+/(.*)')
      5 end
      6 
      7 local clone = function(repo, path)
      8   vim.fn.system { 'git', 'clone', '--depth=1', string.format('https://github.com/%s', repo), path }
      9 end
     10 
     11 local install = function(repo, path)
     12   if vim.fn.isdirectory(path) == 0 then
     13     clone(repo, path)
     14   end
     15 end
     16 
     17 local opt = function(repo)
     18   install(repo, string.format('%s/opt/%s', install_path, name(repo)))
     19 end
     20 
     21 local start = function(repo)
     22   install(repo, string.format('%s/start/%s', install_path, name(repo)))
     23 end
     24 
     25 opt('savq/paq-nvim')