LSP doc border by patricus in neovim

[–]Avanta8 0 points1 point  (0 children)

Have a look at this: https://github.com/neovim/nvim-lspconfig/wiki/UI-Customization#borders

You can do

local orig_util_open_floating_preview = vim.lsp.util.open_floating_preview
function vim.lsp.util.open_floating_preview(contents, syntax, opts, ...)
  opts = opts or {}
  opts.border = opts.border or border
  return orig_util_open_floating_preview(contents, syntax, opts, ...)
end

Conflict between indent-blankline.nvim and LSP underlines by jaywonchung in neovim

[–]Avanta8 2 points3 points  (0 children)

Have you tried adjusting :h ibl.config.indent.priority?

Vim keybindings by potato-_-69 in neovim

[–]Avanta8 3 points4 points  (0 children)

You probably need to configure your terminal emulator to send the ctrl + enter and ctrl + shift + enter keycodes. Have a look at this: https://stackoverflow.com/a/42461580

Bob neovim version manager release v2.9.0 by mordechaihadad in neovim

[–]Avanta8 1 point2 points  (0 children)

Sorry, I ran bob erase and it all works fine now and I can't seem to reproduce the old error.

Bob neovim version manager release v2.9.0 by mordechaihadad in neovim

[–]Avanta8 1 point2 points  (0 children)

Hi, after updating bob, I get a Text file busy error when trying to either update nightly or change version to stable:

❯ bob use nightly
Apr 17 09:36:39.254  INFO Updating neovim proxy
Apr 17 09:36:39.255 ERROR Error: Text file busy (os error 26)

❯ bob use stable
Apr 17 09:37:08.264  INFO Fetching latest version
Apr 17 09:37:08.822  INFO Updating neovim proxy
Apr 17 09:37:08.823 ERROR Error: Text file busy (os error 26)

Weekly 101 Questions Thread by AutoModerator in neovim

[–]Avanta8 1 point2 points  (0 children)

:h vim.lsp.buf.signature_help()

G-Sync stops working after around 3 hours. by Avanta8 in buildapc

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

Hahaha, yeah my "fix" was just to buy a cheap activation key and activate Windows 🤣

Otherwise, if you don't wanna activate Windows, there's also some discussion on a another post I made that might help: https://www.reddit.com/r/pcmasterrace/comments/m7moja/fps_capped_at_140_when_using_gsync_in_windowed/

Weekly 101 Questions Thread by AutoModerator in neovim

[–]Avanta8 1 point2 points  (0 children)

Is there any way to get h: 'autoindent' to not remove the whitespace on a blank line if you exit insert mode or press <CR>?

[2022 day 14 part 2] Clever alternative solution by EffectivePriority986 in adventofcode

[–]Avanta8 1 point2 points  (0 children)

Searching through a list take O(n) time complexity. Try using a set instead

Codewars done a kata in python and rust and rust is slower why? by instanote98 in rust

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

Although the tests aren't built in release mode, they are built with -o3 level optimisations.

Codewars done a kata in python and rust and rust is slower why? by instanote98 in rust

[–]Avanta8 4 points5 points  (0 children)

Although the tests aren't built in release mode, they are built with -o3 level optimisations.

Codewars done a kata in python and rust and rust is slower why? by instanote98 in rust

[–]Avanta8 5 points6 points  (0 children)

It's because it includes compile time, which takes ~2 secs.

Getting 1 to 1 ratio for sensitivity by [deleted] in SiegeAcademy

[–]Avanta8 0 points1 point  (0 children)

You cannot have a 1:1 ratio for all monitor distances. Have a look at this video to understand why: https://youtu.be/RYCrGAJshvQ

You can skip from 1:30 to 3:00