2021-12-08 09:38:24 -06:00
|
|
|
-- LOAD THE PLUGINS
|
|
|
|
|
|
|
|
-- install packer on the fly
|
2022-01-21 10:37:04 -06:00
|
|
|
-- local fn = vim.Fn
|
|
|
|
-- local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
|
|
|
-- if fn.empty(fn.glob(install_path)) > 0 then
|
|
|
|
-- packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
|
|
|
-- end
|
2021-12-08 09:38:24 -06:00
|
|
|
--
|
|
|
|
|
|
|
|
|
|
|
|
return require('packer').startup(function(use)
|
2022-01-21 10:03:35 -06:00
|
|
|
use 'wbthomason/packer.nvim'
|
2021-12-08 09:38:24 -06:00
|
|
|
|
|
|
|
use 'preservim/NERDTree'
|
2022-01-21 10:37:04 -06:00
|
|
|
|
2021-12-08 09:38:24 -06:00
|
|
|
use {
|
|
|
|
'goolord/alpha-nvim',
|
|
|
|
requires = { 'kyazdani42/nvim-web-devicons' },
|
|
|
|
config = function ()
|
|
|
|
require'alpha'.setup(require'alpha.themes.startify'.opts)
|
|
|
|
end
|
2022-01-21 10:03:35 -06:00
|
|
|
}
|
2022-01-21 10:37:04 -06:00
|
|
|
|
2021-12-08 09:38:24 -06:00
|
|
|
use {
|
|
|
|
'airblade/vim-gitgutter',
|
2022-01-21 10:37:04 -06:00
|
|
|
config = function()
|
2021-12-08 09:38:24 -06:00
|
|
|
local cmd = vim.cmd
|
|
|
|
cmd [[highlight! link SignColumn LineNr]]
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
use {
|
2022-01-21 10:37:04 -06:00
|
|
|
'norcalli/nvim-colorizer.lua',
|
|
|
|
conifg = function()
|
|
|
|
require'colorizer'.setup()
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
use {
|
|
|
|
"folke/which-key.nvim",
|
|
|
|
config = function()
|
|
|
|
require("which-key").setup()
|
|
|
|
end
|
2021-12-08 09:38:24 -06:00
|
|
|
}
|
|
|
|
|
2022-01-21 10:37:04 -06:00
|
|
|
|
|
|
|
use {
|
|
|
|
"ntpeters/vim-better-whitespace",
|
|
|
|
config = function()
|
|
|
|
local cmd = vim.cmd
|
|
|
|
cmd [[ let g:strip_whitespace_on_save = 1 ]]
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
-- style
|
2022-01-21 10:03:35 -06:00
|
|
|
use 'Mofiqul/dracula.nvim'
|
|
|
|
|
2021-12-08 09:38:24 -06:00
|
|
|
-- language specific plugins
|
|
|
|
-- python
|
|
|
|
use {
|
|
|
|
'snakemake/snakemake',
|
|
|
|
rtp="misc/vim",
|
|
|
|
ft={"Snakefile","snk"}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- toml
|
|
|
|
use 'cespare/vim-toml'
|
|
|
|
|
2022-01-21 10:37:04 -06:00
|
|
|
if packer_bootstrap then
|
2021-12-08 09:38:24 -06:00
|
|
|
require('packer').sync()
|
|
|
|
end
|
|
|
|
end)
|