add fundamental nvim and vim configs
This commit is contained in:
parent
285321fa38
commit
99c942cc3b
8 changed files with 274 additions and 0 deletions
22
dot_config/nvim/lua/plugins.lua
Normal file
22
dot_config/nvim/lua/plugins.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
-- 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)
|
Loading…
Add table
Add a link
Reference in a new issue