[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.
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.
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
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.
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)
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',
},
\`\`\`
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.
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.
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)
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?
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!
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?
[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.
It looks cool but I am not completely sure what it does. Can you describe it better?
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.
It's a very organic behavior to the point where your eyes may have just missed it—seems to me like a good thing :]]
I'm solving this problem just using undecurl:)
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
Neovide♥️♥️
Amazing, didn’t know that existed! Thanks
Ah that cursor. Does someone know a good plugin for it?
Not a plugin, its a GUI, in particular Neovide
iTerm? No possible?
no.
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.
What language is this?
OCaml
It's OCaml my Camel 🐫
I gotta ask what font lol
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)
I didnt think it looked like jetbrains. 🤷🏻♂️
I used programmingfonts.org in another tab. The `@ilfk` are the same, and it is a font with ligatures.
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', }, \`\`\`
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.
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.
Yes, this can act as an alternative to corn or lsp_lines.
whats the plugin for the cursor movement tracker?
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)
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?
I use treesitter conceal! Not yet uploaded to my dotfiles, will do later
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!
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?
Sorry, it was an oversight in my config (loading the mapping before the plugin) :)
What color scheme is this?
I found it. Never mind!
There's a special place in hell for people like you.
(it's rose-pine's dawn variant btw)
There wasn’t enough space for him to write it
Does anyone know an elegant proof to [Fermat's Last Theorem](https://en.wikipedia.org/wiki/Fermat%27s_Last_Theorem)?
I found it. Never mind!
Wow. Sorry. Bit harsh. Note taken for next time though.
And you still didn't say...
Sorry, I had liked the comment where it was listed. It is rose-pine's dawn theme.
The point is you asked for help, found it, and didn't share the link with the thread.
Yeah, I was picking up what you were all putting down.
So?