Initial NeoVIM config
Signed-off-by: Valentin Popov <valentin@popov.link>
This commit is contained in:
parent
6f49229c3f
commit
a2349e19a8
10
init.vim
Normal file
10
init.vim
Normal file
@ -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
|
8
lua/plugins/init.lua
Normal file
8
lua/plugins/init.lua
Normal file
@ -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)
|
2
plugin/.gitignore
vendored
Normal file
2
plugin/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
Loading…
x
Reference in New Issue
Block a user