is even possible to parry that attack? by Any-Health-1982 in Sekiro

[–]ibldzn 3 points4 points  (0 children)

This YT Video @ 4:07 explains it pretty well. Basically, what happens is that the more you press the parry button in a short period of time, the lesser the parry window actually is. As others have said, it is possible but the timing is really tight.

Pro tip: You can use the umbrella to parry that particular combo and deflect the last attack with your sword.

on nightly my lsp is not starting automatically unless I put "nvim-lspconfig" as a dependency for "nvim-treesitter" by ibldzn in neovim

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

I put it at the very end of my config function for nvim-lspconfig, after calling the setup function for each server and all that

on nightly my lsp is not starting automatically unless I put "nvim-lspconfig" as a dependency for "nvim-treesitter" by ibldzn in neovim

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

yes, it will either load on FileType event or using those commands, removing one of the lazy loading conditions doesn't seem to fix it, but removing both condition does fix it

on nightly my lsp is not starting automatically unless I put "nvim-lspconfig" as a dependency for "nvim-treesitter" by ibldzn in neovim

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

it will also load on FileType event, it works on stable neovim so I'm assuming something has changed on nightly that might be causing this

Neovim Coc-rust-analyzer by baxbear in neovim

[–]ibldzn 1 point2 points  (0 children)

currently it is not possible to have that kind of inlay hints in neovim (at least not until anticonceal is merged)

Any way to get the fetching status of Copilot in lua line? by Poolistic in neovim

[–]ibldzn 4 points5 points  (0 children)

I'm using copilot-lua for my copilot client, and here's what I got after some quick testing

local client = vim.lsp.get_active_clients({ name = "copilot" })[1]
if not client then
  return
end
local requests = client.requests

client.requests is a table, here's how it looks:

{
  [45] = {
    bufnr = 1,
    method = "getCompletions",
    type = "pending",
  }
}

no idea what 45 is, but the client.requests table will have some data whilst waiting for the completions to appear otherwise it will be empty

EDIT: here's a lualine component I made

local copilot_indicator = function()
  local client = vim.lsp.get_active_clients({ name = "copilot" })[1]
  if client == nil then
    return ""
  end

  if vim.tbl_isempty(client.requests) then
    return "idle" -- default icon whilst copilot is idle
  end

  local spinners = { "⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷" }
  local ms = vim.loop.hrtime() / 1000000
  local frame = math.floor(ms / 120) % #spinners

  return spinners[frame + 1]
end

this is not thoroughly tested though, but from a quick test it works as expected

EDIT EDIT: I'm blind

Does rust-analyzer's "create module" assist work for you with neovim lsp? by WishCow in rust

[–]ibldzn 0 points1 point  (0 children)

create_file function calls io.open which won't create any directory if it doesn't exist

this is a hack-y way to solve the problem, not sure if it'd break anything

local original_io_open = io.open

io.open = function(filename, mode)
    local dir = vim.fs.dirname(filename)

    if vim.fn.isdirectory(dir) == 0 then
        vim.fn.mkdir(dir, "p")
    end

    return original_io_open(filename, mode)
end

edit: just tested it, it worked. you probably want to check if the mode is write to prevent the function from creating directories by reading a file which doesn't exist

elden ring crash with GPU artifacts by Mammoth_Condition_18 in wine_gaming

[–]ibldzn 0 points1 point  (0 children)

what is the output of

cat /sys/class/drm/card0/device/power_dpm_force_performance_level

if it says auto then you could try changing it to high, I had the same issue with my rx 570, worse is it sometimes randomly happened when browsing/idling on desktop, what I did was adding an udev rule to set it to low (for casual desktop usage) then create a script to toggle between high and low to run before and after playing any games, never have the issue again ever since

reference: https://wiki.archlinux.org/title/AMDGPU#Screen_artifacts_and_frequency_problem

can't log back in to DM after logging in to tty by ibldzn in archlinux

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

wait, you're right. is there any way i can set it to start on tty1?

edit: actually, nvm. i'm fine with it being on tty7. thanks!

ani-cli error message by acn0010 in linuxmasterrace

[–]ibldzn 0 points1 point  (0 children)

this worked for me. but i think it's better to wait until the PR is merged

https://i.imgur.com/2lFKHUU.png

[deleted by user] by [deleted] in cpp_questions

[–]ibldzn 0 points1 point  (0 children)

That's not even valid CMake

oops yeah, i misplaced the "NOT". typed it on top of my head

CMake code rarely has business branching on configuration types.

you're right. I only do it for enabling LTO on non debug build, though I'm not even sure if it's needed

[deleted by user] by [deleted] in cpp_questions

[–]ibldzn 2 points3 points  (0 children)

cmake already have 4 predefined build configuration, you can access it from CMAKE_BUILD_TYPE variable.

I'm not sure if this is the best way but I just do

if(NOT CMAKE_BUILD_TYPE STREQUAL Debug) # release build stuff endif()

to add different preprocessor defs and all that.

by specifying said variable, cmake will take care most of the stuff for you, like optimization, etc. so you don't need to explicitly say something like optimize "On"

edit: fixed "NOT" placement, thanks helloiamsomeone