From ba4fc5f8fba8cb114dbce24f2e717284cfeb36a6 Mon Sep 17 00:00:00 2001 From: jolzem Date: Mon, 22 Dec 2025 14:05:22 +0100 Subject: [PATCH] Removed neovim config --- deploy.sh | 6 ---- nvim/init.vim | 98 --------------------------------------------------- 2 files changed, 104 deletions(-) delete mode 100755 nvim/init.vim diff --git a/deploy.sh b/deploy.sh index 37651d3..5ddd719 100755 --- a/deploy.sh +++ b/deploy.sh @@ -34,12 +34,6 @@ for option in "$@"; do mv "$HOME/.config/zsh/gitstatus/gitstatus.prompt.zsh" "$HOME/.config/zsh/gitstatus/gitstatus.prompt.zsh.bak" link "$PWD/zsh/gitstatus.prompt.zsh" "$HOME/.config/zsh/gitstatus/gitstatus.prompt.zsh" ;; - nvim) - [ ! -d "$HOME/.config/nvim" ] && mkdir -p "$HOME/.config/nvim" - link "$PWD/nvim/init.vim" "$HOME/.config/nvim/init.vim" - sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' - ;; git) [ ! -d "$HOME/.config/git" ] && mkdir -p "$HOME/.config/git" link "$PWD/git/config" "$HOME/.config/git/config" diff --git a/nvim/init.vim b/nvim/init.vim deleted file mode 100755 index 998f1b6..0000000 --- a/nvim/init.vim +++ /dev/null @@ -1,98 +0,0 @@ -" init autocmd -autocmd! -set number relativenumber " Show relative line numbers on the left. -filetype plugin on " Auto-detect un-labeled filetypes -syntax on " Turn syntax highlighting on -set ai " Sets auto-indentation -set si " Sets smart-indentation -set cursorline " Highlight current cursor line -set tabstop=2 " Tab equal 2 spaces (default 4) -set shiftwidth=2 " Arrow function (>>) creates 2 spaces -set expandtab " Use spaces instead of a tab charater on TAB -set smarttab " Be smart when using tabs -set hlsearch " When searching (/), highlights matches as you go -set incsearch " When searching (/), display results as you type (instead of only upon ENTER) -set smartcase " When searching (/), automatically switch to a case-sensitive search if you use any capital letters -set ttyfast " Boost speed by altering character redraw rates to your terminal -set showmatch " Show matching brackets when text indicator is over them -set noerrorbells " Silence the error bell -set novisualbell " Visually hide the error bell -set encoding=utf8 " Set text encoding as utf8 -set clipboard+=unnamedplus " Use the OS clipboard by default -set showtabline=2 " Use tabline -set splitright " split to the right instead of left -set textwidth=80 " Limit to 80 characters in width -set colorcolumn=80 " Colored Column after 80 Characters -set wrap -set bg=dark -set wildmode=longest,list,full - -" PLUGINS -" download to ~/.local/share/nvim/site/autoload/plug.vim -call plug#begin("~/.local/share/nvim/site/autoload/plugged") - Plug 'junegunn/goyo.vim' - Plug 'neoclide/coc.nvim', {'branch': 'release'} - Plug 'https://github.com/jiangmiao/auto-pairs.git' - Plug 'lervag/vimtex' - Plug 'https://github.com/ap/vim-css-color' - Plug 'https://github.com/907th/vim-auto-save.git' - Plug 'https://github.com/alvan/vim-closetag' - Plug 'vim-airline/vim-airline' - Plug 'https://github.com/github/copilot.vim' -call plug#end() - -let g:vimtex_view_method = 'zathura' -" let g:vimtex_view_forward_search_on_start = 0 -let g:auto_save = 1 -let mapleader ="," -let g:airline#extensions#tabline#enabled = 1 -let g:coc_disable_startup_warning = 1 - -" REMAPPING -" jump to last known position when opening a file -au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g'\"" | endif - -map :Goyo -imap :Goyoa - -map ,, :keepp /<++>ca< -imap ,, :keepp /<++>ca< - -" indent with tab -vnoremap >gv -vnoremap >> -inoremap >>a -nnoremap >> -inoremap < << - -" jump to beginning of selection when exiting visual mode -vnoremap o - -" use to trigger completion and navigate to the next complete item -function! CheckBackspace() abort - let col = col('.') - 1 - return !col || getline('.')[col - 1] =~# '\s' -endfunction - -inoremap - \ coc#pum#visible() ? coc#pum#next(1) : - \ CheckBackspace() ? "\" : - \ coc#refresh() - -autocmd BufWritePre,BufRead *.tex :VimtexCompile " init autocompiling tex docs -autocmd VimLeave *.tex :!texclear % " clear tex junk when closing tex file -autocmd BufWritePre * %s/\s\+$//e " auto delete trailing white space on save -autocmd BufWritePost *.vim source % - -" LaTeX shortcuts -autocmd FileType tex inoremap b \textbf{} -autocmd FileType tex inoremap u \underline{} -autocmd FileType tex inoremap i \textit{} -autocmd FileType tex inoremap s \section{} -autocmd FileType tex inoremap ss \subsection{} -autocmd FileType tex inoremap sss \subsubsection{} -autocmd FileType tex inoremap l \begin{itemize}<++>\end{itemize},, -autocmd FileType tex inoremap o \begin{enumerate}<++>\end{enumerate},, -autocmd FileType tex inoremap c {\tt }