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

Change config to have inlayhint after the variable like VSCode #919

Closed
hungpham3112 opened this issue Dec 10, 2021 · 1 comment
Closed
Assignees

Comments

@hungpham3112
Copy link

What's the output of :CocInfo

versions


vim version: NVIM v0.6.0
node version: v14.18.0
coc.nvim version: 0.0.80-03c9add7cd
coc.nvim directory: C:\Users\hungpham\vimfiles\plugged\coc.nvim
term: undefined
platform: win32

## Log of coc.nvim

2021-12-10T20:25:30.967 INFO (pid:8108) [coc-tabnine] - Using tabnine from C:\Users\hungpham\AppData\Local\coc\extensions\coc-tabnine-data\binaries\4.0.23\x86_64-pc-windows-gnu\TabNine.exe
2021-12-10T20:25:30.971 INFO (pid:8108) [plugin] - coc.nvim 0.0.80-03c9add7cd initialized with node: v14.18.0 after 103ms
2021-12-10T20:25:31.505 INFO (pid:8108) [services] - registered service "vimlsp"
2021-12-10T20:25:31.506 INFO (pid:8108) [services] - vim language server state change: stopped => starting
2021-12-10T20:25:31.661 INFO (pid:8108) [services] - vim language server state change: starting => running
2021-12-10T20:25:31.664 INFO (pid:8108) [services] - service vimlsp started
2021-12-10T20:25:32.146 INFO (pid:8108) [attach] - receive notification: highlight []
2021-12-10T20:25:32.910 INFO (pid:8108) [attach] - receive notification: highlight []
2021-12-10T20:25:34.638 INFO (pid:8108) [attach] - receive notification: highlight []
2021-12-10T20:25:35.321 INFO (pid:8108) [attach] - receive notification: highlight []
2021-12-10T20:25:35.990 INFO (pid:8108) [attach] - receive notification: highlight []
2021-12-10T20:25:37.270 INFO (pid:8108) [attach] - receive notification: highlight []
2021-12-10T20:25:40.200 INFO (pid:8108) [attach] - receive notification: highlight []
2021-12-10T20:25:41.460 INFO (pid:8108) [attach] - receive notification: highlight []
2021-12-10T20:25:42.309 INFO (pid:8108) [attach] - receive notification: highlight []
2021-12-10T20:25:43.090 INFO (pid:8108) [attach] - receive notification: highlight []
2021-12-10T20:26:17.978 INFO (pid:8108) [attach] - receive notification: showInfo []

What's the output of :CocCommand rust-analyzer.serverVersion
[coc-nvim] rust-analyzer 7d6fcbc0b 2021-12-06 stable

Here is my config:

{
    "suggest.noselect": false,
    "vimlsp.trace.server": "verbose",
    "vimlsp.debug": true,
    "coc.preferences.formatOnType": true,
    "coc.preferences.formatOnTypeFiletypes": ["c", "rust"],
    "coc.preferences.formatOnSaveFiletypes": ["python", "c", "rust"],
    "rust-analyzer.cargo.unsetTest": [
        "derivative"
    ],
    "python.formatting.provider": "black",
    "python.formatting.blackPath": "C:/Users/hungpham/AppData/Local/Programs/Python/Python310/Scripts/black.exe",
    "python.linting.pylintArgs": ["--generate-members"],
    "rust-analyzer.inlayHints.typeHints": true,
    "rust-analyzer.inlayHints.refreshOnInsertMode": true,
    "rust-analyzer.inlayHints.chainingHints": true,
    "rust-analyzer.inlayHints.hideNamedConstructorHints": true
}
@fannheyward
Copy link
Owner

We can't put inlayHint in middle text in vim/neovim #177.

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

2 participants