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

48 lines
1.3 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)
end
function install_packages()
-- Packer can manage itself
use 'wbthomason/packer.nvim'
use {'dracula/vim'}
use {'whatyouhide/vim-gotham'}
use {'neovim/nvim-lspconfig'}
2021-06-24 09:05:08 +02:00
use {'kabouzeid/nvim-lspinstall'}
2021-06-23 22:51:18 +02:00
use {'hrsh7th/nvim-compe'}
use {'shaunsingh/moonlight.nvim'}
-- Telescope project search
use {
'nvim-telescope/telescope.nvim',
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}
}
use {'nvim-treesitter/nvim-treesitter'}
use 'kyazdani42/nvim-web-devicons' -- removing this line doesn't change the error
use 'kyazdani42/nvim-tree.lua'
2021-06-27 16:24:55 +02:00
use 'kdheepak/lazygit.nvim'
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
}