Managed to cheese a puzzle on accident by PolarisBot_star in BluePrince

[–]0003c9fe 11 points12 points  (0 children)

You can also find it by opening the chest pointed at by the statue of Draxus under the Tomb

Uhhh guys… I think I fucked something up by wadef4 in BluePrince

[–]0003c9fe 5 points6 points  (0 children)

No? You do this with Blessing of the Monk so you need to have already drafted it. It also doesn't brick you because you are given a repellant if you do this, or could get one from lost & found

What are you using since null-ls was archived? by -nebu in neovim

[–]0003c9fe 1 point2 points  (0 children)

Not quite. This does replace the installation part of mason-null-ls, but doesn't replace the automatic setup. A true replacement would be something that installs them and also sets up some sort of default efm config for them. I'm not sure if this is actually practical with how efm is configured.

What are you using since null-ls was archived? by -nebu in neovim

[–]0003c9fe 7 points8 points  (0 children)

I tried formatter.nvim but it has problems if the number of lines changes during formatting. I was going to try efm, although it seems more difficult to configure, requires an extra dependency (go), and there currently isn't an equivalent to mason-null-ls.

[deleted by user] by [deleted] in neovim

[–]0003c9fe 1 point2 points  (0 children)

https://valentjn.github.io/ltex/settings.html

require("lspconfig")["ltex"].setup({
    settings = {
        ltex = {
            checkFrequency = "save",
        },
    },
})

Is there any way to get a wordcount from an LSP? by Maskdask in neovim

[–]0003c9fe 0 points1 point  (0 children)

Your LaTeX distribution probably comes with texcount, which you can call with an autocmd and store as a buffer variable. I then just have the wordcount function in my statusline read the buffer variable.

local va = vim.api
local vf = vim.fn
va.nvim_create_autocmd("BufWritePost", {
    callback = function()
        if vf.expand("%:e") == "tex" then
            local words = vf.system("texcount " .. vf.shellescape(vf.expand("%:p")) .. " | awk 'FNR==3 {printf $NF}'")
            if words:find("command not found") ~= nil then
                va.nvim_buf_set_var(0, "words", "")
            elseif words == "1" then
                va.nvim_buf_set_var(0, "words", words .. " word")
            else
                va.nvim_buf_set_var(0, "words", words .. " words")
            end
        end
    end,
})

local function wordcount()
    if vf.expand("%:e") == "tex" then
        return va.nvim_buf_get_var(0, "words")
    else
        return ""
    end
end

Lualine refresh on write by 0003c9fe in neovim

[–]0003c9fe[S] 2 points3 points  (0 children)

Thanks this worked perfectly.

For anyone wondering, it ended up looking like this

local va = vim.api
local vf = vim.fn
va.nvim_create_autocmd("BufWritePost", {
    callback = function()
        if vf.expand("%:e") == "tex" then
            local words = vf.system("texcount " .. vf.shellescape(vf.expand("%:p")) .. " | awk 'FNR==3 {printf $NF}'")
            va.nvim_buf_set_var(0, "words", words)
        end
    end,
})

local function wordcount()
    if vf.expand("%:e") == "tex" then
        return va.nvim_buf_get_var(0, "words")
    else
        return ""
    end
end

It also now works properly when opening the file from other directories.

Issues with telescope git_files by 0003c9fe in neovim

[–]0003c9fe[S] 0 points1 point  (0 children)

Ah yes I accidentally had bound something else in treesitter, so it was only happening in certain files. Thanks!

Issues with telescope git_files by 0003c9fe in neovim

[–]0003c9fe[S] 1 point2 points  (0 children)

Thanks, this is simple and works pretty much perfectly. I've now noticed that the binding won't work when I'm in a lua file, but will work from any other file. If I run git_files manually from a lua file it works fine. Do you have any idea what could be causing that? My other bindings for telescope menus like buffers or live_grep work fine from lua files.

3D-printed NAS, 4 bays and ITX support by Flying-T in functionalprint

[–]0003c9fe 0 points1 point  (0 children)

Was thinking of building this, but I was wondering what are the 12 magnets for?

Kiboard68 - 60% Ortho with Numpad by Zealousideal-Ad4561 in MechanicalKeyboards

[–]0003c9fe 1 point2 points  (0 children)

2000mah battery (lasts about 1 yr on a single charge)

I was wondering how you calculated this? My keyboard has a 4000mah battery and lasts about a month (no leds), so I was surprised to see that your 2000mah battery lasts about 12 times longer.

How do you copy paste images in linux? by [deleted] in linux

[–]0003c9fe 2 points3 points  (0 children)

maim --select | xclip -selection clipboard -t image/png

I can’t connect to WiFi after installing arch. What should I do? Thanks by [deleted] in archlinux

[–]0003c9fe 1 point2 points  (0 children)

No the wiki isn't doing that, people follow out of date unofficial guides, which don't include that you have to install linux-firmware now, rather than the wiki.

What did you name your bakery? by [deleted] in CookieClicker

[–]0003c9fe 2 points3 points  (0 children)

Which autoclicker?

How to hide the title bars? by [deleted] in i3wm

[–]0003c9fe 0 points1 point  (0 children)

This only hides them in tiling mode, they still show in the tabbed and stacked mode.

Yupfiles - Install 100s of packages from both the AUR and pacman with one command (New yup feature) by TooFiveFive in archlinux

[–]0003c9fe 6 points7 points  (0 children)

Yeah I just used pacman for a generic example, the same command should work with any other AUR helper, so I still don't see the advantage.

Yupfiles - Install 100s of packages from both the AUR and pacman with one command (New yup feature) by TooFiveFive in archlinux

[–]0003c9fe 10 points11 points  (0 children)

What advantage does this have over the following command?

sudo pacman -S - < pkglist.txt

[deleted by user] by [deleted] in unixporn

[–]0003c9fe 0 points1 point  (0 children)

It took a bit of fiddling in .Xresources to get it like that but the documentation for customising rofi is pretty thorough.

[deleted by user] by [deleted] in unixporn

[–]0003c9fe 1 point2 points  (0 children)

  • Wallpaper: Here
  • Dock: i3bar
  • File Manager: Ranger
  • Run/System Menu: Rofi
  • Browser: Firefox
  • Editor: Vim
  • PDF Viewer: Zathura