diff options
| author | Max Christian Pohle | 2023-10-21 02:32:31 +0200 |
|---|---|---|
| committer | Max Christian Pohle | 2023-10-21 02:32:31 +0200 |
| commit | 66f713050c69bf88706d8d17ed2e32c73b12ee57 (patch) | |
| tree | 35976b23f2e9afd7b0c6aca389117b12ef6dfb5d /vimrc | |
| parent | 3efb1546b256c620da3ea70c8c717e55cce0b3b2 (diff) | |
| download | vim-66f713050c69bf88706d8d17ed2e32c73b12ee57.tar.bz2 vim-66f713050c69bf88706d8d17ed2e32c73b12ee57.zip | |
Improved code folding, because tree-sitter broke it
Diffstat (limited to 'vimrc')
| -rw-r--r-- | vimrc | 30 |
1 files changed, 12 insertions, 18 deletions
| @@ -1,12 +1,19 @@ | |||
| 1 | exec ':source '.fnamemodify($MYVIMRC,':h').'/'.'vimrc-common' | 1 | exec ':source '.fnamemodify($MYVIMRC,':h').'/'.'vimrc-common' |
| 2 | set packpath+=pack/submodules | 2 | set packpath+=pack/submodules |
| 3 | 3 | ||
| 4 | set isfname-== | 4 | if has("nvim") |
| 5 | set modeline | 5 | set shadafile="/tmp/shada" |
| 6 | 6 | endif | |
| 7 | set signcolumn=yes | ||
| 8 | set foldcolumn=1 | ||
| 9 | 7 | ||
| 8 | if exists("g:neovide") | ||
| 9 | " neovide specific | ||
| 10 | set guifont=monospace:h11:b | ||
| 11 | " :#e-subpixelantialias:#h-full | ||
| 12 | let g:neovide_cursor_animation_length=0.03 | ||
| 13 | let g:neovide_cursor_trail_size=0.8 | ||
| 14 | let g:neovide_scroll_animation_length = 0.05 | ||
| 15 | let g:neovide_transparency = 0.9 | ||
| 16 | endif | ||
| 10 | 17 | ||
| 11 | " if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) | 18 | " if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) |
| 12 | " autocmd TextYankPost * call system("wl-copy", get(v:event, 'regcontents')) | 19 | " autocmd TextYankPost * call system("wl-copy", get(v:event, 'regcontents')) |
| @@ -14,19 +21,6 @@ set foldcolumn=1 | |||
| 14 | " nnoremap P :silent put! =system('wl-paste')<CR> | 21 | " nnoremap P :silent put! =system('wl-paste')<CR> |
| 15 | " endif | 22 | " endif |
| 16 | 23 | ||
| 17 | |||
| 18 | if has("nvim") | ||
| 19 | set shadafile="/tmp/shada" | ||
| 20 | endif | ||
| 21 | |||
| 22 | " neovide specific | ||
| 23 | set guifont=monospace:h11:b | ||
| 24 | " :#e-subpixelantialias:#h-full | ||
| 25 | let g:neovide_cursor_animation_length=0.03 | ||
| 26 | let g:neovide_cursor_trail_size=0.8 | ||
| 27 | let g:neovide_scroll_animation_length = 0.05 | ||
| 28 | let g:neovide_transparency = 0.9 | ||
| 29 | |||
| 30 | " scripts from the default vim installation, which do not get loaded by default, but are useful. | 24 | " scripts from the default vim installation, which do not get loaded by default, but are useful. |
| 31 | " if filereadable($VIMRUNTIME.'/macros/editexisting.vim') | 25 | " if filereadable($VIMRUNTIME.'/macros/editexisting.vim') |
| 32 | " packadd! editexisting | 26 | " packadd! editexisting |
