home/dot_config/nvim/lua/plugins.lua
2022-03-13 21:00:12 +01:00

22 lines
513 B
Lua

-- Plugin definitions and loading
local cmd = vim.cmd
-- Rerun packer install when this file changes
cmd([[
augroup packer_user_config
autocmd!
autocmd BufWritePost plugins.lua source <afile> | PackerCompile
augroup end
]])
-- Load packer
cmd([[packadd packer.nvim]])
-- Get plugins
return require("packer").startup(function(use)
-- Dogfood packer
use({"wbthomason/packer.nvim", opt = true})
-- LSP stuff
use({"neovim/nvim-lspconfig", config = function() require("plugins.lsp") end})
end)