I just came across an article that says language servers are a must for coding in Rust.
-
I just came across an article that says language servers are a must for coding in Rust. I do not use one, I just use vim. What am I missing?
-
I just came across an article that says language servers are a must for coding in Rust. I do not use one, I just use vim. What am I missing?
@ryanc I've never used it either. To me it's just a thing that regularly fails to start
-
I just came across an article that says language servers are a must for coding in Rust. I do not use one, I just use vim. What am I missing?
@ryanc Does that mean no autocomplete at all? how do you jump to symbols etc?
-
I just came across an article that says language servers are a must for coding in Rust. I do not use one, I just use vim. What am I missing?
@ryanc probably a lot of bullshit. I used Emacs as a perfectly cromulent IDE freakin' 35 years ago, and I'm finding a whole bunch of stuff for using it with Rust 30 seconds ago.
If you can't do it without relying on somebody else's stuff, the code is not your own, and subject to corpo whims. This... blows whale chunks.
-
I just came across an article that says language servers are a must for coding in Rust. I do not use one, I just use vim. What am I missing?
@ryanc A language server first needs to know how your code is compiled. Then it builds an index and thus fully understands its structure and syntax. It has a standard interface so any compatible editor can do smarter navigation, highlighting, completion etc. I use nvim and Codium with servers for C/C++, sh/bash, json, Markdown etc. Good things. You can do all this with other tools but language servers modernize the set-up.
BTW there is no AI bollocks involved! #NoAI
-
I just came across an article that says language servers are a must for coding in Rust. I do not use one, I just use vim. What am I missing?
@ryanc rusty-tags is helpful and doesn't have all the language server config headaches.
-
@ryanc Does that mean no autocomplete at all? how do you jump to symbols etc?
@bjorndown No auto complete, I can jump to things with /
-
@ryanc A language server first needs to know how your code is compiled. Then it builds an index and thus fully understands its structure and syntax. It has a standard interface so any compatible editor can do smarter navigation, highlighting, completion etc. I use nvim and Codium with servers for C/C++, sh/bash, json, Markdown etc. Good things. You can do all this with other tools but language servers modernize the set-up.
BTW there is no AI bollocks involved! #NoAI
@spjames Why would I need completion?
-
@spjames Why would I need completion?
@ryanc I can't remember all the APIs and their arguments. Some suggestions for what follows the bit I can remember is useful. A reminder of the argument types and order is also very handy.
std::memcpy(): it's TO, FROM, SIZE isn't it? Oh yes is: says so here in my editor. This information comes from the code base in use so it's definite.A lot of code I work on is encumbered with lots of pre-processor conditional sections. It's very helpful to see which parts are actually live given the current configuration. Available APIs and types are indexed accordingly too so I find out early if I'm using something inappropriately. Also the value of a complicated macro can be meaningfully explained.
-
R relay@relay.infosec.exchange shared this topic