93 lines
1.7 KiB
Lua
93 lines
1.7 KiB
Lua
-- LOAD THE PLUGINS
|
|
|
|
-- install packer on the fly
|
|
-- 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
|
|
--
|
|
|
|
|
|
return require('packer').startup(function(use)
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
use 'preservim/NERDTree'
|
|
|
|
use {
|
|
'goolord/alpha-nvim',
|
|
requires = { 'kyazdani42/nvim-web-devicons' },
|
|
config = function ()
|
|
require'alpha'.setup(require'alpha.themes.startify'.opts)
|
|
end
|
|
}
|
|
|
|
-- use {
|
|
-- 'airblade/vim-gitgutter',
|
|
-- config = function()
|
|
-- local cmd = vim.cmd
|
|
-- cmd [[highlight! link SignColumn LineNr]]
|
|
-- end
|
|
-- }
|
|
--
|
|
use {
|
|
'norcalli/nvim-colorizer.lua',
|
|
conifg = function()
|
|
require'colorizer'.setup()
|
|
end
|
|
}
|
|
|
|
use {
|
|
'numToStr/Comment.nvim',
|
|
config = function()
|
|
require('Comment').setup()
|
|
end
|
|
}
|
|
|
|
use {
|
|
"folke/which-key.nvim",
|
|
config = function()
|
|
require("which-key").setup()
|
|
end
|
|
}
|
|
|
|
use {
|
|
"ggandor/lightspeed.nvim"
|
|
}
|
|
use {
|
|
"ntpeters/vim-better-whitespace",
|
|
config = function()
|
|
local cmd = vim.cmd
|
|
cmd [[ let g:strip_whitespace_on_save = 1 ]]
|
|
end
|
|
}
|
|
|
|
use {
|
|
'lewis6991/gitsigns.nvim',
|
|
requires = {
|
|
'nvim-lua/plenary.nvim'
|
|
},
|
|
config = function()
|
|
require('gitsigns').setup()
|
|
end
|
|
}
|
|
|
|
-- style
|
|
use 'Mofiqul/dracula.nvim'
|
|
|
|
-- language specific plugins
|
|
-- python
|
|
use {
|
|
'snakemake/snakemake',
|
|
rtp="misc/vim",
|
|
ft={"Snakefile","snk"}
|
|
}
|
|
|
|
-- toml
|
|
use 'cespare/vim-toml'
|
|
vim.g.strip_whitespace_on_save = 1
|
|
|
|
if packer_bootstrap then
|
|
require('packer').sync()
|
|
end
|
|
end)
|