dotfiles/.config/nvim/lua/plugins.lua

50 lines
1.5 KiB
Lua

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})
vim.cmd [[packadd packer.nvim]]
end
require('packer').startup(function(use)
use 'https://github.com/wbthomason/packer.nvim'
use 'https://github.com/owozsh/amora'
-- file formats
use {
'https://github.com/nvim-orgmode/orgmode',
config = function()
require('orgmode').setup{}
end
}
-- source code
use 'https://github.com/tpope/vim-commentary'
---- lsp
use {
'https://github.com/nvim-treesitter/nvim-treesitter',
run = function()
require('nvim-treesitter.install').update({ with_sync = true })
end
}
use 'https://github.com/neovim/nvim-lspconfig'
---- completion
use 'https://github.com/L3MON4D3/LuaSnip'
use 'https://github.com/hrsh7th/cmp-nvim-lsp'
use 'https://github.com/hrsh7th/cmp-buffer'
use 'https://github.com/hrsh7th/cmp-path'
use 'https://github.com/hrsh7th/cmp-cmdline'
use 'https://github.com/hrsh7th/cmp-nvim-lua'
use 'https://github.com/hrsh7th/nvim-cmp'
if packer_bootstrap then
require('packer').sync()
end
end)
vim.cmd([[
augroup packer_user_config
autocmd!
autocmd User PackerComplete PackerCompile
autocmd BufWritePost plugins.lua source <afile> | PackerInstall
augroup end
]])