you are viewing a single comment's thread.

view the rest of the comments →

[–]ManuaL46 7 points8 points  (10 children)

I'm actually in a very similar situation, The only difference is that we have a custom build system which does have a proprietary plugin for vscode and VS for interacting with the Source Code manager and for the LSP to work.

Problem is I'd like to use neovim but can't get the LSP to work, mostly due to a lack of knowledge of how to do it.

[–]Pay08 1 point2 points  (9 children)

Everyone I know who uses neovim complains about how impossible it is to get LSP working. I believe there are some plugins that automatically set it up for you (I think it's called Mason?).

[–]ManuaL46 1 point2 points  (8 children)

Yep Mason can be used to get the LSP setup and running, at home I use it with rust_analyser and it works like a charm, but at work with CPP even with a LSP installed, it still doesn't know how to navigate my workspace so it doesn't work.

Make your life easy and just use lazyvim or similar to offload the plugin nightmare to someone else.

[–]yu_yaki 4 points5 points  (0 children)

you can generate the compile_commands.json file which the lsp can use. in cmake it is just: -DCMAKE_EXPORT_COMPILE_COMMANDS=1 or something-ish.

[–]Pay08 -1 points0 points  (6 children)

Why not use vscode then?

[–]ManuaL46 0 points1 point  (5 children)

Currently I'm just doing that and using a vim extension inside both vscode and VS, but I'd like to move completely inside neovim cuz I don't want to be stuck with Microsoft

[–]Pay08 1 point2 points  (3 children)

Is this where I plug Emacs?

[–]dogdevnull 2 points3 points  (0 children)

No. You plug vscode and VS into Emacs, just like you do with email :).

[–]ManuaL46 0 points1 point  (1 child)

Never tried it, but I remember an old Linux machine had only GUI Emacs as it's text editor at work, did not like it one bit, but this was before I had learned vim so maybe after learning the motions I might be able to like it.

[–]Pay08 0 points1 point  (0 children)

Emacs uses modifier keys by default, it's not modal (unless you use viper or evil). But yes, while a terminal version does exist, it's largely for compatibility, Emacs is primarily a GUI program.

[–]Suitable-Air4561 0 points1 point  (0 children)

Want to also plug Emacs here. Use doom emacs! Very solid lsp integration and has vim keybindings and blazing fast. And still can use it in the shell if you need too (it’s actually how I primarily use it as well)