forked from neoclide/coc.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(files): workaround buffer name limitation on Windows (Neovim)
On Windows, due to Vim's bug, you can't correctly `fnameescape()` special characters in buffer name. (reference: vim/vim#541) Therefore, you can't open a buffer whose name contains some special character with `:edit`, preventing correctly jump to definition in some LSPs. For example, jdtls returns custom URI (jdt://...) if the definition is inside metadata. This URI contains `?`, so it can't be opened in Windows (neoclide/coc-java#82). I found that you can workaround this bug using Neovim API to set a buffer name directly, though it's Neovim-only solution.
- Loading branch information
1 parent
b5950ac
commit d2f19e0
Showing
2 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters