This commit is contained in:
2023-08-26 14:25:57 +02:00
parent 78dc3fa029
commit 94ab7ed41c

View File

@@ -1,15 +1,13 @@
call plug#begin('~/.config/nvim/plugins') call plug#begin('~/.config/nvim/plugins')
Plug 'cloudhead/neovim-fuzzy' Plug 'cloudhead/neovim-fuzzy'
Plug 'jnurmine/Zenburn'
Plug 'mhinz/vim-signify' Plug 'mhinz/vim-signify'
Plug 'overcache/NeoSolarized'
Plug 'LnL7/vim-nix' Plug 'LnL7/vim-nix'
Plug 'neovimhaskell/haskell-vim'
call plug#end() call plug#end()
if ($TERM=~"xterm-256color" || $TERM=~"screen-256color") if ($TERM=~"xterm-256color" || $TERM=~"screen-256color")
colorscheme NeoSolarized colorscheme zenburn
set background=light "set termguicolors
set termguicolors
endif endif
filetype plugin indent on filetype plugin indent on
@@ -30,7 +28,6 @@ set nofoldenable
set nojoinspaces set nojoinspaces
set nowrap set nowrap
set number set number
set printoptions=paper:A4,syntax:n,number:y
set shiftwidth=2 set shiftwidth=2
set showbreak=↪\ set showbreak=↪\
set splitbelow set splitbelow
@@ -52,9 +49,7 @@ nnoremap <silent> gB :bp<CR>
nnoremap <silent> gb :bn<CR> nnoremap <silent> gb :bn<CR>
" https://github.com/neovim/neovim/pull/13268 " https://github.com/neovim/neovim/pull/13268
if matchstr(execute('version'), 'NVIM v0.\zs[^\n]') > 5
unmap Y unmap Y
endif
function! s:StripTrailing() function! s:StripTrailing()
let l = line(".") let l = line(".")
@@ -68,4 +63,8 @@ augroup vimrc
autocmd BufWritePre * call s:StripTrailing() autocmd BufWritePre * call s:StripTrailing()
autocmd BufNewFile,BufRead *.pdc,*.pandoc setlocal filetype=markdown autocmd BufNewFile,BufRead *.pdc,*.pandoc setlocal filetype=markdown
autocmd FileType go setlocal noexpandtab sw=8 autocmd FileType go setlocal noexpandtab sw=8
autocmd BufReadPost *
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
\ | exe "normal! g`\""
\ | endif
augroup END augroup END