diff options
| author | xs <xs@xs.local> | 2026-11-08 18:56:39 +0800 |
|---|---|---|
| committer | xs <xs@xs.local> | 2026-11-08 18:56:39 +0800 |
| commit | bba0fa8537b991d6792bd1a1dce25bcc35d42c70 (patch) | |
| tree | 5de7e66f65dba661c5cccaedc1e2ab1dc0c17b3e /core/vimrc | |
| parent | 146066e5804e53a359c5aa5b71e8d774e3f54000 (diff) | |
vimrc: skip rust-analyzer detachedFiles for buffers whose directory does not exist
Diffstat (limited to 'core/vimrc')
| -rw-r--r-- | core/vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -203,7 +203,7 @@ function! RustCrate() abort | |||
| 203 | endfunction | 203 | endfunction |
| 204 | function! s:RustAddDetached() abort | 204 | function! s:RustAddDetached() abort |
| 205 | let l:p = expand('%:p') | 205 | let l:p = expand('%:p') |
| 206 | if empty(l:p) || index(g:ra_init.detachedFiles, l:p) >= 0 | return 0 | endif | 206 | if empty(l:p) || !isdirectory(fnamemodify(l:p, ':h')) || index(g:ra_init.detachedFiles, l:p) >= 0 | return 0 | endif |
| 207 | call add(g:ra_init.detachedFiles, l:p) | 207 | call add(g:ra_init.detachedFiles, l:p) |
| 208 | return 1 | 208 | return 1 |
| 209 | endfunction | 209 | endfunction |
