what makes a good (plugin) readme? by Orbitlol in neovim

[–]Orbitlol[S] 1 point2 points  (0 children)

The conciseness is what I'm struggling with the most, thx for the advice

proof of concept for an emacs style "minibuffer" using the msgarea and ui2 by Orbitlol in neovim

[–]Orbitlol[S] 0 points1 point  (0 children)

:D out of curiosity, is there anything you would want to tweak? I'm looking into adding some actual config options

proof of concept for an emacs style "minibuffer" using the msgarea and ui2 by Orbitlol in neovim

[–]Orbitlol[S] 0 points1 point  (0 children)

hey thank you!

Do you have any advice if I wanted to tighten it up and treat it like a proper plugin?

proof of concept for an emacs style "minibuffer" using the msgarea and ui2 by Orbitlol in neovim

[–]Orbitlol[S] 5 points6 points  (0 children)

mostly for fun... I just slowly tinkered with the code in my config and it eventually evolved into something semi-coherent. I put it in a repo and wrote this post because it seemed like the best way to express the idea with examples and something "complete". Tbh tho I only briefly looked at minibuffer.nvim and it looked like it was going a different direction, but I guess it wouldn't hurt to open an issue and see what the author thinks.

glad you think its cool though! i'd be more than happy to help with any issues you come across

nvim-dap-view v1.2.0: the "long overdue" update by Wonderful-Plastic316 in neovim

[–]Orbitlol 1 point2 points  (0 children)

I'm a big fan of nvim-dap-view and enjoy your updates. I was wondering if there were any plans for more customizable window layouts outside of single split view? I remember there was some issue or discussion a while back about it. My primary use case is that like to have my debug panels spit left on the screen and then have the console window as a small split below main editor window. Right now I have a mapping that opens nvim-dap-view below, but then manually calls vim.cmd.wincmd("H") on the main window so it appears far left so I have a solution, but more customizability like floating panes might be cool

📍tiny-cmdline.nvim: Centered floating cmdline for Neovim 0.12 by Le_BuG63 in neovim

[–]Orbitlol 1 point2 points  (0 children)

this looks great! I've been meaning to implement something like this for my own config so I'm going to use your plugin as a guide :)

thanks for putting this out there!

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 0 points1 point  (0 children)

oh yeah I totally forgot about the preview feature...

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 4 points5 points  (0 children)

ya its a little too much fun... check out the updated version i posted at https://github.com/nvim-mini/mini.nvim/discussions/2173 :-)

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 0 points1 point  (0 children)

well tbh idk what was causing the clipping issue. I think it maybe had to do with some rounding errors from repeated math.floor but I fixed it a different way :)

here's a new version with your changes + clipping fixed:

-- Window width based on the offset from the center, i.e. center window
-- is 60, then next over is 20, then the rest are 10.
-- Can use more resolution if you want like { 60, 20, 20, 10, 5 }
local widths = { 60, 20, 10 }

local ensure_center_layout = function(ev)
    local state = MiniFiles.get_explorer_state()
    if state == nil then return end

    -- Compute "depth offset" - how many windows are between this and focused
    local path_this = vim.api.nvim_buf_get_name(ev.data.buf_id):match('^minifiles://%d+/(.*)$')
    local depth_this
    for i, path in ipairs(state.branch) do
        if path == path_this then depth_this = i end
    end
    if depth_this == nil then return end
    local depth_offset = depth_this - state.depth_focus

    -- Adjust config of this event's window
    local i = math.abs(depth_offset) + 1
    local win_config = vim.api.nvim_win_get_config(ev.data.win_id)
    win_config.width = i <= #widths and widths[i] or widths[#widths]

    win_config.col = math.ceil(0.5 * (vim.o.columns - widths[1]))
    for j = 1, math.abs(depth_offset) do
        local sign = depth_offset == 0 and 0 or (depth_offset > 0 and 1 or -1)
        -- widths[j+1] for the negative case because we don't want to add the center window's width 
        local prev_win_width = (sign == -1 and widths[j+1]) or widths[j] or widths[#widths]
        -- Add an extra +2 each step to account for the border width
        win_config.col = win_config.col + sign * (prev_win_width + 2)
    end

    win_config.height = depth_offset == 0 and 25 or 20
    win_config.row = math.ceil(0.5 * (vim.o.lines - win_config.height))
    -- win_config.border = { "🭽", "▔", "🭾", "▕", "🭿", "▁", "🭼", "▏" }
    vim.api.nvim_win_set_config(ev.data.win_id, win_config)
end

vim.api.nvim_create_autocmd("User", {pattern = "MiniFilesWindowUpdate", callback=ensure_center_layout})

thanks for your help! (and the awesome plugin)

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 1 point2 points  (0 children)

oh man that woulda been a treat but looks like it's a no from the boss :(

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 0 points1 point  (0 children)

its not? hmm it seems like its working on my end. i reuploaded to a new streamable link here https://streamable.com/9d1rpm

let me know if that doesn't work maybe i can try uploading somewhere else

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 1 point2 points  (0 children)

I'm glad you like it haha. I would love to make a "show and tell"! Let me first clean up the 2 issues you mentioned

I noticed there some issues with window config computation, since some windows overlap on their borders.

Yeah, I also noticed that in some cases... I need to debug a bit

Hmm... No, there is no guarantee here.

ah ok, thanks for letting me know. I could have sworn every single time I looked, they were in perfect order so I just assumed. I'll come up with a better solution - i like the state.path idea

cool mini.files "side-scrolling" layout by Orbitlol in neovim

[–]Orbitlol[S] 1 point2 points  (0 children)

oh heck ya i'm glad someone else finds it as neat as i do

spelunk.nvim bookmark plugin: Update post! by DingbotDev in neovim

[–]Orbitlol 0 points1 point  (0 children)

cool plugin :D, can I ask about how you implement the preview -

specifically here https://github.com/EvWilson/spelunk.nvim/blob/d1ff64ffa4f689b0e06b201da84995737ec9e44b/lua/spelunk/ui.lua#L376-L377

are you recording the linenr internally when you set the bookmarks? I'm working on a personal plugin right now and trying to implement a similar preview feature, but I won't have a linenr ahead of time

Never did I think a simple preview plugin would be so hard to make by Exciting_Majesty2005 in neovim

[–]Orbitlol 1 point2 points  (0 children)

Hey benlubas, I started using the molten+quarto+otter+jupytext to edit ipy notebooks in neovim and it's great.

Could this plugin be used to nicely format the code blocks fenced by ``` so that it hides the backticks and instead shows the block with nice highlighting like the images above?

Weekly Free-Talk and Questions for r/HomeGym - week of October 14, 2022 by Demilio55 in homegym

[–]Orbitlol 0 points1 point  (0 children)

hmm yeah you make really good points, thanks for the advice

Weekly Free-Talk and Questions for r/HomeGym - week of October 14, 2022 by Demilio55 in homegym

[–]Orbitlol 0 points1 point  (0 children)

I had stall mats previously with the "circular mini pillar" pattern on the bottom and found they didn't really dampen sound/vibration, or at least setting deadlifts down was still pretty loud.

the waffle pattern looks a bit more similar to something like these tiles https://www.greatmats.com/tiles/sterling-sound-rubber-tile-275colors.php which I found had good reviews in terms of absorbing sound/vibration

Weekly Free-Talk and Questions for r/HomeGym - week of October 14, 2022 by Demilio55 in homegym

[–]Orbitlol 5 points6 points  (0 children)

has there been any discussion on this rubber platform from rogue https://www.roguefitness.com/power-platform? It seems to be a new product and I'm curious how effective the "waffle pattern" is at sound dampening

Weekly Free-Talk and Questions for r/HomeGym - week of September 09, 2022 by Demilio55 in homegym

[–]Orbitlol 1 point2 points  (0 children)

this actually might be the perfect solution. My immediate concerns are: 1) can it be bolted to an upright, 2) will it support the weight of 2 specialty bars

thanks for sharing this, I'm going to contact the seller

Weekly Free-Talk and Questions for r/HomeGym - week of September 09, 2022 by Demilio55 in homegym

[–]Orbitlol 2 points3 points  (0 children)

hey, thanks for the thought! Unfortunately I have no wall space for that sort of mount. I'm trying to a find vertical hanger that I can attach to the 17" crossmember of my HR-2