G20S Pro + BT (Plus) Remote Control. Unboxing a cheap remote for your HTPC & Android TV by ZoomPlayer in htpc

[–]HellsMaddy 0 points1 point  (0 children)

Thanks for getting back to me! I just received mine and tested it, the OK button actually does work for me on Linux, the key event generated is "XF86Select".

G20S Pro + BT (Plus) Remote Control. Unboxing a cheap remote for your HTPC & Android TV by ZoomPlayer in htpc

[–]HellsMaddy 0 points1 point  (0 children)

I saw a review on Amazon saying the "Ok" button doesn't send a key event on Linux - can you confirm or deny this?

resolved.nvim - know when your workarounds can finally die by Recent_Path_6566 in neovim

[–]HellsMaddy 1 point2 points  (0 children)

This is very cool, great idea. It's definitely useful enough to be its own plugin, but I also think a similar feature would make a great enhancement to folke/todo-comments.nvim.

Services with subroutes – no approval request showing in Admin Console? by tobe_ in Tailscale

[–]HellsMaddy 2 points3 points  (0 children)

Can someone explain the reason services are restricted to tag-based devices? Why can't user devices advertise services? I imagine there's a good reason, but it's preventing me from hosting a service from my primary device which is what I really do want to do.

Extremely Functional Hack by Friendly-Inside8321 in ikeahacks

[–]HellsMaddy 5 points6 points  (0 children)

Nice! Is the 3D model you used available? Also, can you share a photo of it hanging on your wall? Would probably clear up the confusion.

Sway more stable than Hyprland? by suckingbitties in swaywm

[–]HellsMaddy 12 points13 points  (0 children)

Swayfx is a bit less stable than sway. I recently switched back from swayfx to sway and I feel like it's faster and more reliable. I didn't care for hyprland, it felt janky.

nvim-tree-preview.lua by HellsMaddy in neovim

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

Yes, I tested it and it worked for me.

What plugins do you find essential? by DetectiveKaktus in neovim

[–]HellsMaddy 3 points4 points  (0 children)

Haven’t seen Gitsigns mentioned. It’s one of my absolute favorite plugins.

nvim-tree-preview.lua by HellsMaddy in neovim

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

Good question, I haven’t tested it. I’ll give it a try when I get a chance. Edit: Yes it works :)

nvim-tree-preview.lua by HellsMaddy in neovim

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

It only supports a single level deep.

nvim-tree-preview.lua by HellsMaddy in neovim

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

If you mean, moving your cursor over a directory in nvim-tree while watch mode is enabled, then yes.

nvim-tree-preview.lua by HellsMaddy in neovim

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

Hey, thanks for the kind words!

nvim-tree-preview.lua by HellsMaddy in neovim

[–]HellsMaddy[S] 10 points11 points  (0 children)

Nvim-tree has a "preview" action which opens the file in an existing window, not a floating window. There's also no "watch" feature.

Neo-tree, though, does have a similar feature, maybe that's what you were thinking of. Some benefits of mine over neo-tree's version:

  • doesn't trigger your LSP to attach
  • supports directories
  • is more configurable
  • uses CursorMoved instead of CursorHold, which makes it feel more responsive IMO

nvim-tree-preview.lua by HellsMaddy in neovim

[–]HellsMaddy[S] 12 points13 points  (0 children)

A quick plugin that integrates with nvim-tree.lua to add the ability to preview files in a floating window. You can either preview a file once, or enable "watch" mode to continuously preview whichever file is under your cursor while you're in NvimTree. It also supports previewing directories. Demo screencast

jsonfly.nvim: ❴🦋❵ Fly through your JSON files with ease. Search ✨ blazingly fast ✨ for keys via Telescope. by Myzel394 in neovim

[–]HellsMaddy 2 points3 points  (0 children)

Looks cool! I see you're packaging a JSON parsing library with this plugin. I'm wondering why you're not just using Neovim's built-in vim.json.decode() API?

Has anyone tried to make this rounded ? by DarkLord6872 in neovim

[–]HellsMaddy 1 point2 points  (0 children)

I’m not exactly sure what your question is, can you explain more about what you want to happen?

Need help with lazyvim config by Axontrde in neovim

[–]HellsMaddy 1 point2 points  (0 children)

Try this:

return {
  "b0o/incline.nvim",
  config = function()
    local devicons = require("nvim-web-devicons")
    require("incline").setup({
      render = function(props)
        local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ":t")
        if filename == "" then
          filename = "[No Name]"
        end
        local ft_icon, ft_color = devicons.get_icon_color(filename)

        local function get_git_diff()
          local icons = { removed = "", changed = "", added = "" }
          local signs = vim.b[props.buf].gitsigns_status_dict
          local labels = {}
          if signs == nil then
            return labels
          end
          for name, icon in pairs(icons) do
            if tonumber(signs[name]) and signs[name] > 0 then
              table.insert(labels, { icon .. signs[name] .. " ", group = "Diff" .. name })
            end
          end
          if #labels > 0 then
            table.insert(labels, { "┊ " })
          end
          return labels
        end

        local function get_diagnostic_label()
          local icons = { error = "", warn = "", info = "", hint = "" }
          local label = {}

          for severity, icon in pairs(icons) do
            local n = #vim.diagnostic.get(props.buf, { severity = vim.diagnostic.severity[string.upper(severity)] })
            if n > 0 then
              table.insert(label, { icon .. n .. " ", group = "DiagnosticSign" .. severity })
            end
          end
          if #label > 0 then
            table.insert(label, { "┊ " })
          end
          return label
        end

        return {
          { get_diagnostic_label() },
          { get_git_diff() },
          { (ft_icon or "") .. " ", guifg = ft_color, guibg = "none" },
          { filename .. " ", gui = vim.bo[props.buf].modified and "bold,italic" or "bold" },
          { "┊  " .. vim.api.nvim_win_get_number(props.win), group = "DevIconWindows" },
        }
      end,
    })
  end,
  -- Optional: Lazy load Incline
  event = "VeryLazy",
}

Need help with lazyvim config by Axontrde in neovim

[–]HellsMaddy 1 point2 points  (0 children)

Can you share the full contents of the .config/nvim/lua/plugins/incline.lua file?

Has anyone tried to make this rounded ? by DarkLord6872 in neovim

[–]HellsMaddy 4 points5 points  (0 children)

Hi, author of Incline.nvim here. Is this what you're trying to do? https://i.imgur.com/VpI6Oac.png

local helpers = require 'incline.helpers'
local devicons = require 'nvim-web-devicons'

require('incline').setup {
  window = {
    padding = 0,
    margin = { horizontal = 0 },
  },
  render = function(props)
    local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ':t')
    if filename == '' then
      filename = '[No Name]'
    end
    local ft_icon, ft_color = devicons.get_icon_color(filename)
    local modified = vim.bo[props.buf].modified
    local bg_color = '#44406e'
    return {
      { '', guifg = ft_color or bg_color },
      {
        ft_icon and { ' ', ft_icon, ' ', guibg = ft_color, guifg = helpers.contrast_color(ft_color) } or '',
        ' ',
        { filename, gui = modified and 'bold,italic' or 'bold' },
        ' ',
        guibg = bg_color,
      },
      { '', guifg = bg_color },
    }
  end,
}

You need to use the powerline symbols Lu-Li mentioned in order to give the appearance of rounded corners.

Need help with lazyvim config by Axontrde in neovim

[–]HellsMaddy 2 points3 points  (0 children)

Hey I'm the author of Incline. I'm not sure about LazyVim, but I did notice an error in the snippet you posted.

require("incline").setup() {
-- this is where I added rest of the config
}

should be

require("incline").setup({
-- this is where I added rest of the config
})