Initial NeoVIM config

Signed-off-by: Valentin Popov <valentin@popov.link>
This commit is contained in:
Valentin Popov 2023-03-30 15:17:25 +04:00
parent 6f49229c3f
commit a2349e19a8
Signed by: Valentin Popov
GPG Key ID: AE3CE523DAAA8401
3 changed files with 20 additions and 0 deletions

10
init.vim Normal file
View 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
View 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
View File

@ -0,0 +1,2 @@
*
!.gitignore