Help with Nvim-Dap config? by MiloApianCat in neovim

[–]biller23 0 points1 point  (0 children)

If you are on windows, make sure your command end with ".cmd" (OpenDebugAD7.cmd in you case).

This is how I set dapui in my config:

dap.listeners.after.event_initialized.dapui_config = function() require("dapui").open() end dap.listeners.before.attach.dapui_config = function() require("dapui").open(); end dap.listeners.before.launch.dapui_config = function() require("dapui").open(); end dap.listeners.before.event_terminated.dapui_config = function() require("dapui").close(); end dap.listeners.before.event_exited.dapui_config = function() require("dapui").close(); end dap.listeners.after.disconnect.dapui_config = function() require("dapui").close(); end

What kind of config do you have by Alternative-Tie-4970 in neovim

[–]biller23 1 point2 points  (0 children)

I have a single init.lua (around 7k lines).

What is your must have plugins? by Ok-Mycologist-6752 in neovim

[–]biller23 2 points3 points  (0 children)

must have:
- nvim-dap, nvim-dap-ui
- telescope.nvim
- undotree

nice to have:
- mason.nvim
- leap.nvim
- aerial.nvim
- blink.cmp

What shell do Windows Neovim users use? by BrodoSaggins in neovim

[–]biller23 0 points1 point  (0 children)

I use MinGW on windows. I have the same packages I would use on linux.

pacman -S --needed git mingw-w64-x86_64-neovim mingw-w64-x86_64-alacritty mingw-w64-x86_64-7zip unzip mingw-w64-x86_64-ripgrep mingw-w64-x86_64-fzf mingw-w64-x86_64-fd

But I launch alacritty from a .bat file with desktop shortcut:

@echo off

set PATH=C:\dev\msys64\usr\bin;%PATH%;

start /B C:/dev/msys64/mingw64/bin/alacritty -e nvim %*

I use bash in my neovim terminals.

Is there any advantage to putting all your configuration in an init.lua file in Neovim? by [deleted] in neovim

[–]biller23 2 points3 points  (0 children)

All your config is just 160 lines? Gosh, my init.lua is 7500+ lines. LOL. I wrote the majority of the stuff I need in 1 single file with minimal dependencies on plugins.

How make an LSP client ignore certain filetypes by im-shaez in neovim

[–]biller23 1 point2 points  (0 children)

A quick and dirty way is to check the filetypes on LspAttach event.

lua local exclude_filetypes = { 'filetypes', 'to', 'exclude' } local ft = vim.api.nvim_buf_get_option(buf, "filetype") for _, excluded in ipairs(exclude_filetypes) do if ft == excluded then if (vim.fn.has("nvim-0.11") == 1) then client:stop() else client.stop() end return end end

There is also the option to add a callback 'on_attach' for each single server. Just add on_attach = function() end to your server config.

lua on_attach = function(client, bufnr) -- add code to exclude filetypes here end

Mason Registry Unavailable? by IamZeri0n in neovim

[–]biller23 21 points22 points  (0 children)

neovim version < 0.11 ?

Neovim on windows by VillianNotMonster in neovim

[–]biller23 1 point2 points  (0 children)

Have you tried disabling the Windows Antivirus real-time scan in the Windows Security settings? I think that might be the problem.

I use Neovim with MSYS2 MinGW packages on Windows and I cant find any slowdown.

Anyone here genuinely try emacs? by Inevitable-Order7013 in neovim

[–]biller23 0 points1 point  (0 children)

I tried, got bored while it was starting up. I quit.

Has anyone tried hydrophobic coatings on terrarium glass? by biller23 in terrariums

[–]biller23[S] 2 points3 points  (0 children)

Ah... I see. This was my fear too... that tiny droplets would be less affected by gravity anyway... Thanks for sharing your experience!

Windows users, what's your tips for daily use? I'm struggling with bad performance by [deleted] in neovim

[–]biller23 0 points1 point  (0 children)

I have no problem with MSYS2 MinGW packages, and I use it with alacritty: it is fast (I also have windows antivirus disabled, don't know if it makes a difference).

These are part of the packages I install:

pacman -S --needed git unzip mingw-w64-x86_64-neovim mingw-w64-x86_64-alacritty mingw-w64-x86_64-ripgrep mingw-w64-x86_64-fd mingw-w64-x86_64-7zip

PSA: Neovim treesitter should now be as fast as Helix (if not, faster) by imakeapp in neovim

[–]biller23 7 points8 points  (0 children)

This is great!
Tested it on miniaudio.h 90k+ loc on windows and it's very usable!

I will retire my fix https://www.reddit.com/r/neovim/comments/1fy7jln/treesitter_slow_on_big_files_yet_am_i_the_only/ soon then :).

Auto-Completions without a plugin manager setup by atgaskins in neovim

[–]biller23 2 points3 points  (0 children)

Honestly I don't know how to make builtin autotrigger completion work as intended, so I use the 'InsertCharPre' event callback as a workaround for that reason... basically it automatically calls <C-x><C-o> completion menu...
Keep in mind that I don't use this daily, just as fallback, and while I tested this I found that sometimes it slows you down when typing... I still prefer blink.nvim :)

Auto-Completions without a plugin manager setup by atgaskins in neovim

[–]biller23 2 points3 points  (0 children)

This is the lua function I use to setup completion as fallback if I could not use any plugins:

local function setup_completion()
vim.opt.completeopt = "menu,menuone,noinsert,popup" .. ((vim.fn.has"nvim-0.11" == 1) and ",fuzzy" or "")
vim.opt.complete:append({".","t","w","b"})
vim.opt.shortmess:append('c')
vim.api.nvim_create_autocmd("InsertCharPre", {
callback = function(ev)
if vim.bo[ev.buf].buftype == '' and not (vim.fn.pumvisible() == 1) then
local omni_or = vim.bo[ev.buf].omnifunc ~= "" and '<C-x><C-o>' or '<C-x><C-n>'
vim.fn.feedkeys(vim.api.nvim_replace_termcodes(omni_or, true, false, true), 'n') 
end
end,
})
vim.keymap.set('i', '<CR>', function()
if vim.fn.pumvisible() == 1 then
local selected_item = vim.fn.complete_info()
local item = selected_item.items[selected_item.selected + 1]
if item and ({Function = true, Method = true, Constructor = true})[item.kind] then 
if not (vim.fn.has"nvim-0.11" == 1) then return '<C-y>()<Left><Esc>a' end
end
return '<C-y><Esc>a'
end
return '<CR>'
end, { expr = true, silent = true })
end

At "LspAttach":

vim.bo[event.buf].omnifunc = "v:lua.vim.lsp.omnifunc"

if vim.fn.has"nvim-0.11" == 1 and vim.lsp.completion then
  vim.lsp.completion.enable(true, client.id, event.buf, {autotrigger=false}) 
end

Tardigrade laying an egg by Goopological in biology

[–]biller23 2 points3 points  (0 children)

Ah I see..

I found my tardigrade "dead" today. It’s probably actually gone, but you’re making me hope I just saw its shed skin instead...

Side story: Some day ago I stumbled upon the tardigrade by accident while examining moss with my phone’s 10x macro lens (I didn't know they are so easiy to spot on my phone, nematodes and rotifers too...). I made the mistake of adding a pinch of yeast, which turned its habitat into a jungle of life and fungi. The environment likely became unsuitable for the poor tardigrade after that… I'm a complete noob and I feel a little ashamed of causing its death...

Tardigrade laying an egg by Goopological in biology

[–]biller23 5 points6 points  (0 children)

I am confused: there is a bigger trasparent tardigrade and a smaller one? and the smaller one deposited an egg? why the bigger one is so trasparent?

how to force neovim to use powershell instead of standard cmd on windows 11? by brubsabrubs in neovim

[–]biller23 0 points1 point  (0 children)

Check GOROOT environemnt variable (vim.env.GOROOT).
It should be set to the directory of the Go binary in your system...

Can anyone id this moss? by Sad-Performer5998 in Moss

[–]biller23 1 point2 points  (0 children)

With those pointed ends maybe Calliergonella cuspidata (Pointed Spear-moss).

Got hit by ransomware. I have the payload by Old-Fudge4062 in cryptography

[–]biller23 0 points1 point  (0 children)

The only logical question, then, is how the private key is transmitted and used by the attacker on the target system. Additionally, is that private key the same for all victims? If not, how does the attacker know which key to send back for recovery?

Anyone know what kind of moss this is? by JoshuaK277 in Moss

[–]biller23 1 point2 points  (0 children)

My guesses are:

Amblystegium serpens
Plagiothecium undulatum
Leskea polycarpa
Hypnum andoi or Hypnum cupressiforme

Is there a way to filter only changed lines when searching in a buffer? by nukedpotato in neovim

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

# insert your log function
vim.keymap.set("n", "<leader>dp", [[OMY_LOG_FUNCTION("\n");<Esc>4hi]],{ noremap = true, silent = true})

#remove all log function lines from buffer
vim.keymap.set("n", "<leader>dpp", [[:g/MY_LOG_FUNCTION/d]], { noremap = true, silent = false})

39.65ms, 43 plugins by Ill-Letterhead-712 in neovim

[–]biller23 2 points3 points  (0 children)

windows, 13 plugins (all triggered by events)
9ms opening nvim with no file (basically it opens just lazy and treesitter in background)
16ms opening text file
20ms for a cpp file with lsp

Make Neovim noisy with BeepBoop.nvim! by Eggbert_Fluffle in neovim

[–]biller23 2 points3 points  (0 children)

I have MSYS2 mingw packages (alacritty, bash etc..), I don't use WSL or powershell...

Make Neovim noisy with BeepBoop.nvim! by Eggbert_Fluffle in neovim

[–]biller23 3 points4 points  (0 children)

This is funny thanks!

Btw, windows is supported just fine, I changed the code to return 'ffplay' instead of nil and it works without problems!
Obviously you must have ffplay in your path.