From a2349e19a8b6b923a27abdb6f6a98eddbfb05f11 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 30 Mar 2023 15:17:25 +0400 Subject: Initial NeoVIM config Signed-off-by: Valentin Popov --- init.vim | 10 ++++++++++ lua/plugins/init.lua | 8 ++++++++ plugin/.gitignore | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 init.vim create mode 100644 lua/plugins/init.lua create mode 100644 plugin/.gitignore 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 | 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 -- cgit v1.2.3