dotfiles/.config/nvim/lua/plugins.lua
tastytea baf6550b8a
nvim: remove syntactic
It spawned windows everywhere without me telling it to.
2022-08-09 21:38:30 +02:00

30 lines
903 B
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
packer = require('packer')
packer.init()
packer.use 'https://github.com/wbthomason/packer.nvim'
-- common dependencies which require setup
packer.use {
'https://github.com/nvim-treesitter/nvim-treesitter',
run = function()
require('nvim-treesitter.install').update({ with_sync = true })
end
}
-- compile and install new plugins when lua files in this dir are written
vim.cmd([[
augroup packer_user_config
autocmd!
autocmd User PackerComplete PackerCompile
autocmd BufWritePost nvim/lua/*.lua source <afile> | PackerInstall
augroup end
]])