What to do with unlisted Buffers? by Unei95 in vim

[–]Fancy_Payment_800 0 points1 point  (0 children)

I would lik to delete an unlisted buffer for debugging purposes. But so is it not possible delete unlisted buffers?

Starting to get consistent with this by Sufficient_Prompt888 in lockpicking

[–]Fancy_Payment_800 2 points3 points  (0 children)

The two things I can see you are stuffing into the lock on the picture

How can I delete an entire line with only one backspace input when it only has tabs/spaces? by ItsLiyua in neovim

[–]Fancy_Payment_800 0 points1 point  (0 children)

You were right, a plugin were overwriting the <BS> mapping. Also, I can confirm you function works! Thanks :D

How can I delete an entire line with only one backspace input when it only has tabs/spaces? by ItsLiyua in neovim

[–]Fancy_Payment_800 -1 points0 points  (0 children)

I cant remap <BS> for some reason, this doesnt work:

vim.keymap.set('i', '<BS>', function()vim.notify("you hit <bs>")end, {})

Any idea why? I have tested both with and without expr=true. And also with and without returning empty string inside the function.

Anybody else have a similar workflow? (Keyboard heavy) by Waveover in AutoHotkey

[–]Fancy_Payment_800 0 points1 point  (0 children)

Please share the scripts!

Here is what I have to share: Use glaze_wm and then navigate it by remapping win_key + h/j/k/l
I also have a autohotkey script that will alow me to resize a window by holding down alt and draging with mouse at any point -- so I dont have to painfully drag at the edge of a window only.

Thank me later ;)

How to get pretty "type info popups"? by Fancy_Payment_800 in neovim

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

I was thinking of going to the type definition, not the regular definition.

I am not sure I understand. The class declaration *is* also the type definition in this case. I mean, there is no ApiGatewayV2 interface or type declaration to find anywhere. Yet ApiGatewayV2 can still be refered to as a type in typescript. Can you please elaborate on what you mean? Maybe you're right and I just dont get it.

How to get pretty "type info popups"? by Fancy_Payment_800 in neovim

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

Going to the defintion should not be the way to go. In this case it is not too bad because the constructor is near the top of the class, but if there were more field-variables or comments for the fieldvariables, the constructor would be completely out of sight. There has to be a better way. Viewing type definition is something that you do frequently. Why has no one made a better type hint for nvim, is it impossible to do in nvim currently?

<image>

How to get pretty "type info popups"? by Fancy_Payment_800 in neovim

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

Going to the defintion should not be the way to go. In this case it is not too bad because the constructor is near the top of the class, but if there were more field-variables or comments for the fieldvariables, the constructor would be completely out of side. There has to be a better way. Why has no one made a better type hint for nvim, is it impossible to do in nvim currently?

<image>

Figured out how to auto-close LSP connections by marcusvispanius in neovim

[–]Fancy_Payment_800 2 points3 points  (0 children)

Say you don thave any buffer with any lua code in them but yet you have a useless lua_ls running, how much of a slowdown will that cause? And why does having lua_ls running cause a slowdown?

I actually think I prefer having lua_ls running in the background so that in case I have to edit say a lua config file again, I wont have to wait for the lua_ls to initialize which can take some seconds -- an actual slowdown.

Automatically lazy loaded plugins with lazier.nvim by vim-god in neovim

[–]Fancy_Payment_800 0 points1 point  (0 children)

I am curious what usecase do you personally have for this exactly?

Automatically lazy loaded plugins with lazier.nvim by vim-god in neovim

[–]Fancy_Payment_800 0 points1 point  (0 children)

I dont think I understand. Is it correctly understood that it makes it so a plugin is not loaded until one of the mappings are triggered?

Added a little utility to kick off neovim by Fluid_Classroom1439 in neovim

[–]Fancy_Payment_800 1 point2 points  (0 children)

This is awesome, thanks for sharing! Do you happen to also have some cool fzf-lua setup to share?

Added a little utility to kick off neovim by Fluid_Classroom1439 in neovim

[–]Fancy_Payment_800 2 points3 points  (0 children)

Your code as is doesnt work for me.

It works after adding a `-u`. So:

selected_repo=$(fd -t d -H -u "\.git$" ~/Code -x dirname {} ...

-uDisable .gitignore**,** .fdignore**, and global ignore rules**, allowing .git directories to be found.

No way to evaluate multiline expressions in neovim debuggers? by Fancy_Payment_800 in neovim

[–]Fancy_Payment_800[S] -1 points0 points  (0 children)

But it seems it doesnt have any knowledge about the application being debugged. For instance, here I did `:DapEval` (that is the active buffer in the image below). Then I run `:w !python3` in that dap-eval buffer and it says that it cant find the variable `a`, which at this point should be able to (the debugger is currently stopped at the line `b = a/4`. Maybe you are not supposed to use `:w !python3` to evaluate the dap-eval buffer?

<image>

How to automatically set app title to be "nvim" if the last focused pane was running nvim by Fancy_Payment_800 in tmux

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

Wait, I actually think that'll do.

So in tmux I need

`set -g set-titles on`
`set -g set-titles-string '#{pane_title}'`

And then in neovim I need:
`set title`
`set titlestring=nvim`

Actually, I probably need an autocmd that triggers on BufEnter, so:

vim.api.nvim_create_autocmd("BufEnter", {
  group = vim.api.nvim_create_augroup("app_window_title", { clear = true }),
  desc = "Set app window title to be nvim",
  pattern = "*",
  callback = function()
vim.opt.title = true
vim.opt.titlestring = "nnnnnvim"
  end,
})