diff options
-rw-r--r-- | init.vim | 10 | ||||
-rw-r--r-- | lua/plugins/init.lua | 8 | ||||
-rw-r--r-- | plugin/.gitignore | 2 |
3 files changed, 20 insertions, 0 deletions
diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..06e1a81 --- /dev/null +++ b/init.vim @@ -0,0 +1,10 @@ +" Connecting the plugin manager +lua require('plugins') + +augroup packer_user_config + autocmd! + autocmd BufWritePost plugins.lua source <afile> | PackerCompile +augroup end + +" Automatic file trimming when saving +autocmd BufWritePre * :%s/\s\+$//e diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua new file mode 100644 index 0000000..31702eb --- /dev/null +++ b/lua/plugins/init.lua @@ -0,0 +1,8 @@ +-- This file can be loaded by calling `lua require('plugins')` from your init.vim + +-- Only required if you have packer configured as `opt` +vim.cmd [[packadd packer.nvim]] + +return require('packer').startup(function(use) + use 'wbthomason/packer.nvim' +end) diff --git a/plugin/.gitignore b/plugin/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/plugin/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore
\ No newline at end of file |