1
0
Fork 0
linux-conf/configs/nvim/lua/plugins/init.lua

60 lines
2.1 KiB
Lua
Raw Normal View History

2021-06-23 22:51:18 +02:00
function configure_packages()
call_with_helpers(require('plugins.lspconfig').init)
call_with_helpers(require('plugins.compe').init)
call_with_helpers(require('plugins.nvim-treesitter').init)
2021-06-30 08:45:11 +02:00
call_with_helpers(require('plugins.nvim-web-devicons').init)
2021-06-28 17:03:12 +02:00
call_with_helpers(require('plugins.nvim-comment').init)
2021-06-30 08:45:11 +02:00
call_with_helpers(require('plugins.nvim-autopairs').init)
2021-08-05 20:50:30 +02:00
call_with_helpers(require('plugins.nvim-notify').init)
2021-08-05 21:19:26 +02:00
call_with_helpers(require('plugins.nvim-hlslens').init)
2021-06-23 22:51:18 +02:00
end
function install_packages()
-- Packer can manage itself
use 'wbthomason/packer.nvim'
2021-06-30 08:45:11 +02:00
use 'dracula/vim'
use 'whatyouhide/vim-gotham'
use 'neovim/nvim-lspconfig'
use 'kabouzeid/nvim-lspinstall'
use 'hrsh7th/nvim-compe'
use 'shaunsingh/moonlight.nvim'
use 'windwp/nvim-autopairs'
2021-06-23 22:51:18 +02:00
-- Telescope project search
use {
'nvim-telescope/telescope.nvim',
2021-08-05 20:50:30 +02:00
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}, {'nvim-lua/popup.nvim'}}
2021-06-23 22:51:18 +02:00
}
2021-06-30 08:45:11 +02:00
use 'nvim-treesitter/nvim-treesitter'
2021-06-23 22:51:18 +02:00
2021-06-30 08:45:11 +02:00
use 'kyazdani42/nvim-web-devicons' -- removing this line doesn't change the error
2021-06-23 22:51:18 +02:00
use 'kyazdani42/nvim-tree.lua'
2021-06-27 16:24:55 +02:00
use 'kdheepak/lazygit.nvim'
2021-06-28 17:03:12 +02:00
use 'terrortylor/nvim-comment'
2021-08-05 20:50:30 +02:00
use 'rcarriga/nvim-notify' -- fancy notification
2021-08-05 20:57:53 +02:00
use 'romgrk/barbar.nvim' -- Tabs, as understood by any other editor.
2021-08-05 21:19:26 +02:00
use 'tpope/vim-endwise' -- auto complete block with end
use 'kevinhwang91/nvim-hlslens' -- nvim-hlslens helps you better glance at matched information, seamlessly jump between matched instances.
2021-06-30 08:45:11 +02:00
use 'mhinz/vim-startify' -- The fancy start screen for Vim.
2021-06-23 22:51:18 +02:00
end
function init()
local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
cmd 'packadd packer.nvim'
end
cmd 'packadd packer.nvim'
require('packer').startup(install_packages)
call_with_helpers(configure_packages)
end
return {
init = init
}