From 37e49a1baa89599b15b86504f56539f1c3b0a409 Mon Sep 17 00:00:00 2001 From: Ivan Polyakov Date: Sun, 22 May 2022 21:41:14 +0300 Subject: [PATCH] nvim init --- .config/nvim/init.vim | 37 +++++++++++++++++++ .config/nvim/lua/plugins.lua | 7 ++++ .gitmodules | 3 ++ .../nvim/site/pack/packer/start/packer.nvim | 1 + 4 files changed, 48 insertions(+) create mode 100644 .config/nvim/init.vim create mode 100644 .config/nvim/lua/plugins.lua create mode 100644 .gitmodules create mode 160000 .local/share/nvim/site/pack/packer/start/packer.nvim diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..35fef36 --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,37 @@ +""" General +syntax enable +set nocompatible | filetype indent plugin on | syn on +set backspace=indent,eol,start + +set ruler " show current line and column +set nu " show line numbers +set cc=75 " show column ruler +set ts=4 +set shiftwidth=4 +set expandtab + +""" Colors +syntax on +colorscheme nord " !nord plugin required + +""" Finding files +set path+=** " Provides tab-completion for all file-related tasks +set wildmenu " Display all mathing files when we tab complete + +""" Tags +command! Mktags !ctags -R . + +""" file browsing +let g:netrw_banner=0 " disable annoying banner +let g:netrw_browse_split=4 " open in prior window +let g:netrw_altv=1 " open splits to the right +let g:netrw_liststyle=3 " tree view +let g:netrw_list_hide=netrw_gitignore#Hide() + +"" typo +setlocal spell +set spelllang=en +inoremap u[s1z=`]au + +""" Plugins +lua require('plugins') diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua new file mode 100644 index 0000000..58652df --- /dev/null +++ b/.config/nvim/lua/plugins.lua @@ -0,0 +1,7 @@ +return require('packer').startup(function() + use 'wbthomason/packer.nvim' + + use 'shaunsingh/nord.nvim' + + use 'preservim/nerdtree' +end) diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..aef978c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".local/share/nvim/site/pack/packer/start/packer.nvim"] + path = .local/share/nvim/site/pack/packer/start/packer.nvim + url = https://github.com/wbthomason/packer.nvim diff --git a/.local/share/nvim/site/pack/packer/start/packer.nvim b/.local/share/nvim/site/pack/packer/start/packer.nvim new file mode 160000 index 0000000..4dedd3b --- /dev/null +++ b/.local/share/nvim/site/pack/packer/start/packer.nvim @@ -0,0 +1 @@ +Subproject commit 4dedd3b08f8c6e3f84afbce0c23b66320cd2a8f2