You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multi-line inserts, like overriding a parent method in Python or complex Rust functions defined by traits, are inserted with a "^@" (null character? \n?) instead.
I've managed to produce this with two language servers, pyright and rust-analyzer.
Pyright:
Rust-analyzer:
Vim version: 9.1.1033
LSP revision: 68a3696 (latest as of writing this)
Interesting, I wasn't expecting it to be a limitation of vim because coc.nvim is able to insert multiple lines. I wonder how it does it.
edit: as far as I can tell coc.nvim overrides some things, takes completion items coming from it's Node.js backend and inserts them like they are snippets.
Multi-line inserts, like overriding a parent method in Python or complex Rust functions defined by traits, are inserted with a "^@" (null character?
\n
?) instead.I've managed to produce this with two language servers, pyright and rust-analyzer.
Pyright:
![pyright](https://private-user-images.githubusercontent.com/108282/404550121-ac7471a7-4f5b-4a15-bd4a-eeb5537d238c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODY5MjAsIm5iZiI6MTczOTk4NjYyMCwicGF0aCI6Ii8xMDgyODIvNDA0NTUwMTIxLWFjNzQ3MWE3LTRmNWItNGExNS1iZDRhLWVlYjU1MzdkMjM4Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQxNzM3MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iOGI0NzY4MTcyOGQ3Y2U1ZmJmNmFlYjlhOWQ1ZGJlMzZhNmEyM2ViNGJiMjhkYTZhYjJjOGYxZTM0YmRmOGRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.uknnWGbRqPdWT3sby0aTMvIR63BGroS7WWwSLZW7Rv4)
Rust-analyzer:
![rust-analyzer](https://private-user-images.githubusercontent.com/108282/404550363-7d820a49-b71d-4a3a-9298-b954ee7a1870.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODY5MjAsIm5iZiI6MTczOTk4NjYyMCwicGF0aCI6Ii8xMDgyODIvNDA0NTUwMzYzLTdkODIwYTQ5LWI3MWQtNGEzYS05Mjk4LWI5NTRlZTdhMTg3MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQxNzM3MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iN2Q0YjEwODRlNWEzZDRlYTBkYjU4ZWM2MThhMGM2MDk3NTQxNjA5Nzk0ZjZlYThkNzdhNmJhZWNjZmMyNjU5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.7btfjbtoUDkQMWsxQJHucx7ufE2SIwMOLKnNPiCZcb4)
Vim version: 9.1.1033
LSP revision: 68a3696 (latest as of writing this)
I used this mostly clean vimrc to reproduce it:
The text was updated successfully, but these errors were encountered: