!HCjHPBLFfoFpYNgwdE:matrix.org

Neovim dev

209 Members
Discussion about Neovim development and adjacent topics14 Servers

Load older messages


SenderMessageTime
29 Oct 2024
@bfredl:matrix.orgbfredl splash is deep 16:44:21
@clason:matrix.orgclason"or any combination thereof" 😠16:44:39
30 Oct 2024
@craig-mac:matrix.orgcraig-mac joined the room.02:47:43
@mariasolos:matrix.orgmariasolos
In reply to @mfussenegger:matrix.org
I've no idea how I'd expect that to behave. I don't mind closing it as working as intended
My thoughts exactly. I've been quite passive aggressive lately though lol so I need someone (looking at you) to kindly close the issue
05:23:50
@mariasolos:matrix.orgmariasolosOn another note, I haven't used LSP in vanilla neovim in a while, but is this completion documentation on a separate window by design? https://github.com/neovim/neovim/issues/30985#issuecomment-244588040805:25:05
@mariasolos:matrix.orgmariasolos * On another note, I haven't used LSP in vanilla neovim in a while, but is this completion documentation on a separate buffer by design? https://github.com/neovim/neovim/issues/30985#issuecomment-244588040805:25:42
@glepnir:matrix.orgglepnir :set cot-=preview 05:27:08
@mariasolos:matrix.orgmariasolosI see. But this is a recent change isn’t it?05:30:32
@glepnir:matrix.orgglepnirnope ..preview just work like that..05:31:41
@mariasolos:matrix.orgmariasolosI see05:40:59
@yorickpeterse:matrix.orgYorick Petersehttps://github.com/neovim/neovim/pull/30935 With this PR merged, how is one supposed to set a global set of options for all hover windows as could be done before?15:08:03
@yorickpeterse:matrix.orgYorick Peterse It seems this isn't supported and instead you somehow have to make sure the same options are passed through every invocation of vim.lsp.buf.hover 15:08:21
@lewis6991:matrix.orglewis6991

You can do this:

local f = vim.lsp.buf.hover
vim.lsp.buf.hover = function(config)
  config = config or {}
  config.border = 'rounded'
  return f(config)
end
15:13:57
@lewis6991:matrix.orglewis6991 It's not perfect, but going forward we may add something like vim.o.floatborder. 15:14:29
31 Oct 2024
@mariasolos:matrix.orgmariasolosMaybe it would be nice to have a custom filetype for LSP floating windows. It would make setting options and keybinds easier03:27:45
@realchairforce:matrix.orgrealchairforce

Hi all, quick question - if I wanted to profile the performance of Neovim busted unittests, is there a preferred method? My criteria of "good profiler to choose from is"

  • Ability to nest profilers (e.g. a "describe-with-a-describe" would have its own dedicated profiler")
  • Flamegraph output

I haven't found any profiler that does this flamegraph out-of-box. But what about nesting? The built-in Vim profiler doesn't appear to be nestable. I hear LuaJIT 2.1+ has a built-in profiler. If I use that will it still capture Vimscript functions that are called via Lua properly? If anyone knows about the most comprehensive, nestable profilers for Neovim lua I'd appreciate your advice. Thank you!

04:38:01
@mariasolos:matrix.orgmariasolosProfiles are too complex for me but I've heard good things of https://github.com/stevearc/profile.nvim05:00:15
@mariasolos:matrix.orgmariasolos * Profilers are too complex for me but I've heard good things of https://github.com/stevearc/profile.nvim05:00:22
@realchairforce:matrix.orgrealchairforcehaha even with the "WARNING: this is a gigantic hack" banner at the top?05:01:34
@realchairforce:matrix.orgrealchairforceHm, if you're saying it's good I'll take a deeper dive on it. It doesn't look nestable.05:03:23
@realchairforce:matrix.orgrealchairforce * Hm, if you're saying it's good I'll take a deeper dive on it. It doesn't look nestable though05:03:34
@realchairforce:matrix.orgrealchairforceI wasn't able to get require("jit.p") (in the Neovim docs) to output anything so profile.nvim might be my only hope05:04:12
@realchairforce:matrix.orgrealchairforce mariasolos: I got some decent first results from that. I will have more questions latter but I can move forward with this for now. Thank you very much! 05:15:34
@mariasolos:matrix.orgmariasolos
In reply to @realchairforce:matrix.org
haha even with the "WARNING: this is a gigantic hack" banner at the top?
Yo the entire Neovim experience has a huge “WARNING HIGHLY ADDICTIVE” banner at the top so don’t be cautious now
05:33:32
@realchairforce:matrix.orgrealchairforceTRUE05:36:22
@metroid829:matrix.orgddicksteinWhat's the recommended workaround for the limitation that you can't update/remove extmarks in on_line callbacks in nvim_set_decoration_provider? (relevant commit: https://github.com/neovim/neovim/commit/eb4676c67f5dd54bcda473783315901a3444b40b) Should I be doing an nvim_buf_attach on each buffer and adjust extmarks in the on_lines callback there?20:35:51
@lewis6991:matrix.orglewis6991I think you can use on_win21:23:27
@lewis6991:matrix.orglewis6991on_line is mostly useful for ephemeral extmarks21:24:01
1 Nov 2024
@ofseed:matrix.orgYiI'm trying to find a way to manage buffer/LSP state, do you have any better ideas? https://github.com/neovim/neovim/pull/3102411:34:32
@lewis6991:matrix.orglewis6991Justins already proposed a plan for this. I'll try and find the issue when I can14:07:21

Show newer messages


Back to Room ListRoom Version: 10