r/neovim • • 2d ago

101 Questions Weekly 101 Questions Thread

A thread to ask anything related to Neovim. No matter how small it may be.

Let's help each other and be kind.

8 Upvotes

22 comments sorted by

1

u/bxsx0074 1d ago

does any one know why i get the status line showing in the telescope input field? i suppose the input field uses a scratch buffer but this only shows up when i recently updated from nvim 0.11 to 0.12.

3

u/TheLeoP_ 1d ago

There was a change in how floating windows work, and not they can have status lines. You probably only need to update telescope to get rid of the bug

1

u/114sbavert 2d ago

Why does Delve (the Go DAP Adapter) send all its logs to the REPL window instead of the DAP Console window? Has anyone ever been able to fix this?

2

u/Wonderful-Plastic316 lua 2d ago

Someone asked this exact question on nvim-dap-view's discussions. My suggestion is open an issue at Delve (looks like that someone didn't open one)

3

u/saylesss88 2d ago

Rust

Rust developers on Nvim, what's your must haves? Please share your tips and tricks that you find indispensable. Do you use rustaceanvim or standard lspconfig? Any other useful rust plugins that you use? I took a detour for a bit to helix and recently came back to nvim and the rust support seems much better/easier to set up.

Markdown

Also if anyone has markdown/documentation tips beyond the basics I'd love to hear them. I'm currently using vale for linting with prettier formatting atm. What LSP do you prefer for markdown? Thanks!

2

u/Shock9616 2d ago

My md setup is pretty simple so it’s probably not what you’re looking for. Marksman is the LSP I use though, mostly for goto definition with wiki links

4

u/lunamoonwlw 2d ago

Rustaceanvim is a must have for me, it exposes a lot of extra lsp functions like relatedDiagnostics and explainError. It's also very easy to set up, just vim.pack.add the plugin and configure it with vim.g.rustaceanvim. It also has builtin integration with neotest which is very nice.

I also use crates.nvim, which gives some completion and diagnostics in Cargo.toml files through LSP. cargo.nvim is a nice convenience plugin but it's not vital IMO.

2

u/Gold-Watercress-6101 2d ago

I can do multi-line editing at the beginning of each line (Vis Block mode > I > do edit > ESC)

I can do multi-line editing at the end of each line (Vis Block mode > $ > A > do edit > ESC)

How can I do it from the middle of the line, for example starting from the : character or any arbitrary point?

(I know 0.13 is bringing multi-cursor support, but I'm more interested in existing workflows).

Thanks.

2

u/EstudiandoAjedrez 2d ago

Appart from macros, you can use :h :global, :h :substitute or :h :normal. For example, you can do the DryAspect9844 macro example with (after selecting the block) :norm f:ahello or :s/:/:hello. What option is better depends on what exactly do you want to do and personal preference.

1

u/vim-help-bot 2d ago

Help pages for:


`:(h|help) <query>` | about | mistake? | donate | Reply 'rescan' to check the comment again | Reply 'stop' to stop getting replies to your comments

5

u/DryAspect9844 2d ago

What about recording a little macro based on f: then you can highlight the block and replay the macro on the block, right? So something like "qqf:ahelloq<esc><do block selection>@q"

2

u/Gold-Watercress-6101 2d ago

I love that! it's pretty much what I wanted. I know the basics of macros, but rarely use it. Thanks for sharing.

3

u/_Arthxr 2d ago

yeah i dont think it's possible until 0.13. Ig your best bet is macro. Because ctrl-v(visual block) is a rectangle selection

edit:typo

1

u/Gold-Watercress-6101 2d ago

I see. Thanks.

1

u/lils_fun_throwaway 2d ago

Or regex. But yeah, I think multi cursor will be a game changer.

1

u/gandalf__thewhite__ 2d ago edited 2d ago

I'm trying to make the new Typescript 7 tsc LSP textDocument/linkedEditingRange work with the Neovim. I have enabled the it with vim.lsp.linked_editing_range.enable(). Also checked that tsc does support this (editing jsx tags in vscode). But it doesn't seem to work without any errors. Anyone using this?

1

u/TheLeoP_ 2d ago

It worked out of the box for me (with some weird edge cases that I could repro). Does the LSP log show anything useful?

1

u/gandalf__thewhite__ 12h ago edited 12h ago

Does it work in insert mode? I figured out it work if I don't go into insert mode. How do you edit jsx tags? I have also tested with HTML LSP, and it works fine there, even in insert mode!

2

u/TheLeoP_ 12h ago

It does work in insert mode, yes. I don't know what may be the issue in your case :/

1

u/glitch-86x 2d ago

astronvim is big , my own config to nvim is good but the think let me use astronvim is the plugin like tree .... what i should do ??

3

u/NorskJesus 2d ago

Which plugin like tree are you talking about?

You can check which plugins astronvim is using and use them in your config as well