From 7ec1fa7385c1b88a2efdad72c805b254c52084bd Mon Sep 17 00:00:00 2001 From: A Farzat Date: Wed, 6 Nov 2024 09:09:37 +0900 Subject: Remove nvim submodule Nvim config will be included as bare files instead of a submodule. The nvim config repo will still exist, but the content will be used by yadm without the repo itself. --- .config/nvim/regular.vim | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .config/nvim/regular.vim (limited to '.config/nvim/regular.vim') diff --git a/.config/nvim/regular.vim b/.config/nvim/regular.vim new file mode 100644 index 0000000..9f907df --- /dev/null +++ b/.config/nvim/regular.vim @@ -0,0 +1,49 @@ +" Highlight search results, turned off for a search by :noh. +set hlsearch + +" Leave 5 lines above/below when scrolling. +set scrolloff=5 + +" Turn on line numbering. +set number +set relativenumber + +" Use the wal colorscheme from the plugin if available. +colorscheme wal + +" Add a red column after textwidth limit. +set colorcolumn=+1 + +" Set the indentation +set tabstop=4 +set shiftwidth=0 + +" Format files linux style. +if &modifiable==1 + set fileformat=unix +endif + +" Save swap files in the same directory as the edited file. +"let &directory=".," .. &directory + +" Enable plugins to be loaded based on file type. +filetype plugin on + +" Do not change the shape of the letter based on its position in the word. +" When viewing right-to-left shape change can be very confusing. +set noarabicshape + +" Set keymap to Arabic in case typing in Arabic was desired. +" But set iminsert=0 to have English mapping at first. Switch using i_CTRL-^. +set keymap=arabic +set iminsert=0 + +" Folding based on treesitter +set foldmethod=expr +set foldexpr=nvim_treesitter#foldexpr() + +" Disable mouse. +set mouse= + +" Specify the python3 host program. +let g:python3_host_prog = '/usr/bin/python3' -- cgit v1.2.3-70-g09d2