!cylwlNXSwagQmZSkzs:matrix.org

Neovim

1583 Members
neovim is a great text editor | https://neovim.io | https://github.com/sponsors/neovim | see #neovim_space:matrix.org for more rooms135 Servers

Load older messages


SenderMessageTime
31 May 2023
@kaddkaka:matrix.orgkaddkakaoh20:29:36
@kaddkaka:matrix.orgkaddkakaok Thanks! Got a cool funciton working, this is amazing, I sort of need to screencast 😎20:31:24
@kaddkaka:matrix.orgkaddkakaThe amazing power of matchdo/searchdo: https://asciinema.org/a/EVeArdXOtQqW3CpxfflHCU4z220:42:15
@kaddkaka:matrix.orgkaddkaka
In reply to @kaddkaka:matrix.org
The amazing power of matchdo/searchdo: https://asciinema.org/a/EVeArdXOtQqW3CpxfflHCU4z2
I got the code for the Matchdo function from AndrewRadev on my searchdo request at https://www.reddit.com/r/vim/comments/125dxi8/searchdo_a_friend_of_cdobufdowindo/
20:43:59
@kaddkaka:matrix.orgkaddkaka (:Matchdo is a sibling of :cdo etc., performing a command at each search match) 20:47:26
@gpanders:matrix.orggpanders
In reply to @seandewar:matrix.org
it has been ported already
based
20:55:37
@gpanders:matrix.orggpandersVimscript just gets better and better20:55:42
@gpanders:matrix.orggpanderslike a fine wine20:55:51
@diablo-d3:matrix.orgDiablo-D3lel21:05:06
@diablo-d3:matrix.orgDiablo-D3so, for today's vim config masturbation, my popupify now detects VimResized and WinResized to automatically reshape the popup21:05:33
@dimetro:matrix.orgdimetrodon joined the room.21:51:24
@dimetro:matrix.orgdimetrodon changed their display name from dimetro to dimetrodon.21:57:18
@fl1tzi:matrix.fl1tzi.comFl1tzi removed their profile picture.22:00:55
1 Jun 2023
@vnpower:exozy.meVnPower set a profile picture.02:24:40
@bady:poddery.comPirate Bady joined the room.06:02:23
@chda:matrix.orgp00f plugin/foo.lua is supported from 0.5 onwards right? 08:08:06
@ghostbuster91:matrix.orgghostbuster91

hi folks, quick question about plenary.async - If I have a function a that calls some async functions inside it automatically becomes async itself right? How can I then pass it into async.util.join? In order to do that I need to have it in some kind of lazy form so that the join can invoke it and await then.

scan_dir_async_new is my function that calls some await functions inside.
Should I call wrap on it and pass the callback inside? Like so:

local scan_tasks = {}
  for _, p in ipairs(context.paths_to_load) do
     local scan_task = async.wrap(function(_callback)
       scan_dir_async_new(context, p, _callback)
     end, 1)
     table.insert(scan_tasks, scan_task)
  end


  async.util.join(scan_tasks)

?

08:44:28
@seandewar:matrix.orgseandewar
In reply to @chda:matrix.org
plugin/foo.lua is supported from 0.5 onwards right?
ye
08:46:16
@chda:matrix.orgp00f
In reply to@seandewar:matrix.org
ye
thank
08:55:32
@seandewar:matrix.orgseandewarwelc08:55:41
@chda:matrix.orgp00fi shall make my plugin 0.5+ only after 0.10 is released08:56:07
@chda:matrix.orgp00fif you're still using 0.4 you can fuck off08:56:22
@derpyasianpanda:matrix.orgderpyasianpanda joined the room.09:39:06
@Patruska:matrix.orgDavide Pdoes anyone here use ddc.nvim? the completion plugin10:03:02
@harzo:matrix.kzhub.ccHarzo joined the room.10:11:40
@diablo-d3:matrix.orgDiablo-D3probably not.12:48:47
@vigoux:matrix.orgvigouxLink ?13:12:47
@vigoux:matrix.orgvigoux(https://github.com/Shougo/ddc.vim)13:13:30
@chda:matrix.orgp00f
In reply to @seandewar:matrix.org
ye
lol i already use vim.json
16:16:59
@chda:matrix.orgp00ftime to yeet the vimscr🤮pt16:17:18

There are no newer messages yet.


Back to Room ListRoom Version: 10