Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax include @text syntax/text.vim #23

Open
dezza opened this issue Oct 23, 2022 · 0 comments
Open

syntax include @text syntax/text.vim #23

dezza opened this issue Oct 23, 2022 · 0 comments

Comments

@dezza
Copy link

dezza commented Oct 23, 2022

Stumpled upon this issue working on another lsp client and then testing in vim-lsp to compare.

call s:_execute('syntax include @%s syntax/%s.vim', l:filetype_group, l:filetype)

with rust-analyzer when completing Copy and showing the popup:

sku{'throwpoint': 'function <SNR>60_debounceTimeTimerCallback[1]..<SNR>60_switchMapInputSourceCallback[8]..<SNR>60_takeUntilFactory[7]..<SNR>60_tapSouceFactory[3]..<SNR>60_listFactory[8]..<SNR>60_tapSourceCallback[1]..<lambda>532[1]..<SNR>92_show_floating_window[65]..<SNR>82_do[10]..<lambda>533[1]..<SNR>77_apply[51]..<SNR>77__execute, line 7', 'exception': 'Vim(syntax):E484: Can''t open file syntax/text.vim'}

Due to:

```text the trait `Copy` may not be implemented for this type; field `points` does not implement `Copy` ```

You should make some check for the file first.. like !empty(glob($"{$VIMRUNTIME}/syntax/{mark}.vim"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant