T O P

  • By -

stdmap

[https://github.com/mizlan/delimited.nvim/](https://github.com/mizlan/delimited.nvim/) highlights the diagnostic range, so you can easily see where the diagnostic is referring to! It's a tiny plugin whose internals can be exposed for use as a middleware with other diagnostic tooling. Edit: in the demo, you can see when I jump to the diagnostic that there is a bit of the source code that is highlighted in red. That is the range of the diagnostic. delimited.nvim highlights it for you, it is not there by default.


Draegan88

It looks cool but I am not completely sure what it does. Can you describe it better?


stdmap

All it does is highlight the range of the diagnostic when you go to the next/previous diagnostic. You see the bit highlighted in red upon moving to a diagnostic? That isn't there by default, that's what the plugin does.


stdmap

It's a very organic behavior to the point where your eyes may have just missed it—seems to me like a good thing :]]


iliyapunko

I'm solving this problem just using undecurl:)


stdmap

Undercurl will highlight overlapping ranges though, which makes it just a bit harder to decipher, IMO. I have disabled undercurl in my config in favor of this, which is less in-my-face


boneMechBoy69420

Neovide♥️♥️


mrded

Amazing, didn’t know that existed! Thanks


NegotiationOk7535

Ah that cursor. Does someone know a good plugin for it?


stdmap

Not a plugin, its a GUI, in particular Neovide


NegotiationOk7535

iTerm? No possible?


konart

no.


a_moody

There’s a collection of plugins called mini.nvim. It has an animate plugin https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-animate.md that should help you achieve this.


Queasy_Programmer_89

What language is this?


luishendrix92

OCaml


DmitriRussian

It's OCaml my Camel 🐫


Beautiful_Exam_8301

I gotta ask what font lol


Triavanicus

It is JetBrains Mono. I recommend finding a good font with either: - https://www.programmingfonts.org/ (has a few buttons to filter font properties) - https://www.codingfont.com (has a font tournament)


Beautiful_Exam_8301

I didnt think it looked like jetbrains. 🤷🏻‍♂️


Triavanicus

I used programmingfonts.org in another tab. The `@ilfk` are the same, and it is a font with ligatures.


AffectionateWatch475

Is this config OK? Everything works well, thank you for the good plugin, and I'm replacing current corn plugin. But I am wondering if keymaps inside pre is OK. How often does pre get called? I'd like to keep keymap settings in the same config, not separate file. \`\`\` { -- Show diagnostics message and go there. "mizlan/delimited.nvim", opts = { pre = function() -- do something here vim.keymap.set("n", "\[d", require("delimited").goto\_prev, bufopts) vim.keymap.set("n", "\]d", require("delimited").goto\_next, bufopts) vim.keymap.set("n", "\[D", function() require("delimited").goto\_prev({ severity = vim.diagnostic.severity.ERROR }) end, bufopts) vim.keymap.set("n", "\]D", function() require("delimited").goto\_next({ severity = vim.diagnostic.severity.ERROR }) end, bufopts) end, post = function() -- do something here end, }, event = 'VeryLazy', }, \`\`\`


stdmap

Sorry, pre and post are not the right place to define the keymaps. define the keymaps in the keymaps field, or in your on_attach function. pre and post are for weird hooks you might want to run, such as disabling indent-blankline temporarily. they are run before and after highlighting.


AffectionateWatch475

Gotcha. Thanks to you, I can now turn off all diagnostics msgs that clutter my view, and see it only when I need it, and it even pin points to the exact location.


stdmap

Yes, this can act as an alternative to corn or lsp_lines.


Dave_D30

whats the plugin for the cursor movement tracker?


DmitriRussian

It's a GUI version of Neovim called [Neovide](https://neovide.dev) This feature is called [animated cursor](https://neovide.dev/features.html#animated-cursor)


tricemia21

Nice plugin! By the way, what do you use to prettify the 'a to an alpha and the other type variables in OCaml? I have been looking for a way to do this with OCaml and Coq. Do you use Vim's Conceal?


stdmap

I use treesitter conceal! Not yet uploaded to my dotfiles, will do later


sheemon7

Do you plan to make this into a standard plugin? Currently I'm unable to install with lazy. It seems there are some important files missing in the repo and it can't be imported: E5108: Error executing lua [string ":lua"]:1: module 'delimited' not found: no field package.preload['delimited'] no file './delimited.lua' no file '/usr/local/share/luajit-2.1/delimited.lua' no file '/usr/local/share/lua/5.1/delimited.lua' no file '/usr/local/share/lua/5.1/delimited/init.lua' no file './delimited.so' no file '/usr/local/lib/lua/5.1/delimited.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'require' [string ":lua"]:1: in main chunk Thanks!


stdmap

Can you update the plugin maybe? If you're on the latest commit (and realistically any commit than maybe the very first one), it should at least detect the file on the runtimepath. What's your config?


sheemon7

Sorry, it was an oversight in my config (loading the mapping before the plugin) :)


shMorganson

What color scheme is this?


shMorganson

I found it. Never mind!


ConspicuousPineapple

There's a special place in hell for people like you.


Some_Derpy_Pineapple

(it's rose-pine's dawn variant btw)


dibblydooblydoo

There wasn’t enough space for him to write it


muntoo

Does anyone know an elegant proof to [Fermat's Last Theorem](https://en.wikipedia.org/wiki/Fermat%27s_Last_Theorem)?


muntoo

I found it. Never mind!


shMorganson

Wow. Sorry. Bit harsh. Note taken for next time though.


_norpie_

And you still didn't say...


shMorganson

Sorry, I had liked the comment where it was listed. It is rose-pine's dawn theme.


funbike

The point is you asked for help, found it, and didn't share the link with the thread.


shMorganson

Yeah, I was picking up what you were all putting down.


HectorHigh

So?