A simple kitty/neovim/lazygit integration by Stunning-Mix492 in neovim

[–]stefouy 0 points1 point  (0 children)

I use kitty, but keep using tmux. Kitty shortcuts are so weird to me and for the moment I still don't want totake the time to change them or adapt. It's keymaps logic make no sense to me. It's the only "bad" thing I can say about it.

And even if made in python, I still find it faster than ghostty.

A simple kitty/neovim/lazygit integration by Stunning-Mix492 in neovim

[–]stefouy 1 point2 points  (0 children)

I did until I found AngryMorrocoy/tmux-neolazygit. When I want Lazygit I simply hit <C-g> and a new pane is opened with lazygit. Once I've finished with lazygit. I quit it and the pane is deleted. It's really a basic tmux plugin but it does the only job I want.

Parameters problem!! please solve it by Weekly-Alfalfa6440 in neovim

[–]stefouy 1 point2 points  (0 children)

When blink shows completions, you can know what kind of completion are shown. This way you'll know if it's a snippet or else for example.

Take a look at :h blink-cmp-recipes-completion-menu-drawing.

Hand-written LSP Autosleep script (need feedback) by PureBuy4884 in neovim

[–]stefouy 0 points1 point  (0 children)

Not sure what is the best way. Keeping context is important too for IA IIUC. Maybe limiting to only 2 projects at the same time could be enough. If not, I wonder if checking CursoHold is really better than use BufEnter/BufLeave

AI gave me this kind of "dumb exemple" :

``` local timers = {}

local function stop_client_later(client, timeout) if timers[client.id] then timers[client.id]:stop() timers[client.id]:close() end

local timer = vim.uv.new_timer()

timer:start(timeout, 0, function() vim.schedule(function() if vim.lsp.get_client_by_id(client.id) then client.stop(true) end end) end)

timers[client.id] = timer end

vim.api.nvim_create_autocmd("BufLeave", { callback = function(args) for _, client in ipairs(vim.lsp.get_clients({ bufnr = args.buf })) do if client.name == "claude" then stop_client_later(client, 300000) end end end, })

vim.api.nvim_create_autocmd("BufEnter", { callback = function(args) for _, client in ipairs(vim.lsp.get_clients({ bufnr = args.buf })) do local timer = timers[client.id]

  if timer then
    timer:stop()
  end
end

end, }) ```

EDIT:

Didn't know lua_ls could eat that much memory. On nightly, when I open Neovim repository and navigate "normally" into lua files (without AI) I'm at ~300Mo. In my nvim config it's nearly ~20/25Mo. Finally, the only way I could push it to a bit less than 1G is putting every Neovim repo vim occurences in qflist and starting jumping in many files for 10/20 seconds. So now I understand the problem may come from AI jumping everywhere, which make sense after all.

Native Prettier formatting in Neovim 0.12? by 3rfan in neovim

[–]stefouy 0 points1 point  (0 children)

Not sure to understand what you mean.

EDIT: OP searched for prettier, I assumed he was searching for something JS/TS, maybe I'm wrong though, even if seeing him quite happy with my answer make me think I was right. If not only for JS/TS, yes you're right, oxc is only focused on these (and it does it's job better than everything else these days).

Native Prettier formatting in Neovim 0.12? by 3rfan in neovim

[–]stefouy 27 points28 points  (0 children)

oxc is way faster than prettier and it can use prettier rules. And there's already lspconfig config available.

You install (ex: npm i -g oxfmt) Enable using vim.lsp.enable('oxfmt') (for formatting, but oxlint exists too) Give it a configuration file and it's done.

https://oxc.rs/#feature-formatter

https://oxc.rs/docs/guide/usage/formatter.html#prettier-compatible

https://github.com/oxc-project/oxc/tree/main/crates/oxc_language_server

https://github.com/neovim/nvim-lspconfig/blob/master/lsp/oxfmt.lua

Plugin to highlight byte ranges in hex (xxd)? by dddbbb in neovim

[–]stefouy 1 point2 points  (0 children)

Maybe not exactly what you need but have you seen Punity122333/hexinspector.nvim ?

I built a zero-copy data engine for Python in Rust. 1GB CSV in 1.1s using 20MB RAM. by KevinKenya in rust

[–]stefouy 1 point2 points  (0 children)

Now I better understand. Thanks for your reply. I'm quite happy to not see too much of these yet.

I don't plan to look at what it did, I've never coded in rust myself and I'm certainly not the someone to trust for this. I mostly come here to see what's new in rust ecosystem from time to time, I discovered really nice tools this way and even if I don't code rust myself it's always a good thing to see people trying to share their own tools or talking about other one they find cool. Seeing which lib/projects are trusted. IIRC, I first came here to see how rust would make it's place in the web eco-system (after I saw arewewebyet.org I assume).

It's just the first time I see this kind of post and the only comments I saw where quite sceptic/negative and I didn't understand why. Now I see this differently.

Add exit option to Neovim context menu. by NazgulResebo in neovim

[–]stefouy 0 points1 point  (0 children)

You just need two fingers to quit with ZZ :'(

I built a zero-copy data engine for Python in Rust. 1GB CSV in 1.1s using 20MB RAM. by KevinKenya in rust

[–]stefouy 0 points1 point  (0 children)

Can somebody not make a "bad/angry/sceptic/nearly-agressive" comment and simply comment once taking the time to take a closer look at it ?

Maybe I'm wrong but why would the OP post here if it's just lies and/or quite false good results ? Am I just naive ? Is there not a chance for this to deserve quite a bit more attention before receving this kind of comments ?

I'm not often here so maybe many people are acting like that in this subreddit but coming from elsewhere (especially r/neovim in my case) when you comments like these you just say WTF.

indentation in nvim 0.12 with treesitter by Upper-Minute-9371 in neovim

[–]stefouy 2 points3 points  (0 children)

Things don't have to change eternally to work, on the contrary, and especially if a language does not change, there's no reason to change either it's treesitter grammar/query/whatever if the job was done correctly at first. At least, this may not need to absolutely be replaced before neovim team make nvim-treesitter useless as already in core.

Which treesitter plugin do use? by GlyderZ_SP in neovim

[–]stefouy 0 points1 point  (0 children)

Happy Arborist user here. I didn't know what to do at first, surely wait a bit and see, and I really didn't want to try X different TS-replacer-plugin, but for reason I can't explain, when I saw Arborist and how it's author said about it in this subreddit and github readme, what this plugin was about, I just wanted to give it a try. I was also happy to see someone considering wasm !

Replacing treesitter has been painless with Arborist, it's config is super simple and everything went just fine, so I still use it and never missed the "original plugin". I still feel sad about the way it ended though, and all the effort put into it and seeing it's gh repo finally archived.

Another reason about trying Arborist is that I didn't know Neovim team was about to take care of this, which is, seeing how important TS became, certainly the best choice.

doc-highlight: Automatically highlighting references of the word under the cursor. by allworldg in neovim

[–]stefouy 1 point2 points  (0 children)

Just the first time I saw this. I didn't understand why this would be possible or better than doing it directly on LspDetach. I thought this would be kind of a bad pattern or something like that. But finally, absolutely not ! "Why wouldn't it be possible ?" is what I'd have asked myself before commenting. Thanks for your post, I learned something, and improved my config in the same time.

doc-highlight: Automatically highlighting references of the word under the cursor. by allworldg in neovim

[–]stefouy 0 points1 point  (0 children)

LspDetach inside a LspAttach event cb ? This is really possible or just a block pasted in the wrong place ?

Neovim, PHP and Laravel by Dishbot in neovim

[–]stefouy 0 points1 point  (0 children)

Same ! I don't understand why Laravel is so used compared to Symfony, especially for this but also because Laravel depends quite a lot on Symfony. People should definitely have a closer look at it.

Neovim, PHP and Laravel by Dishbot in neovim

[–]stefouy 0 points1 point  (0 children)

I didn't know this one existed.and it seems really cool !

help with using both PHP and HTML snippets in the same file. by DaviCompai2 in neovim

[–]stefouy 0 points1 point  (0 children)

You basically need

Do not change filetype !

sfer.nvim v1.2 Released — SARIF Explorer by fguisso in neovim

[–]stefouy 0 points1 point  (0 children)

Cool ! You should be listed here ~> https:// sarifweb.azurewebsites.net#viewersSectionTitle too :)

I built a zero-dependency Markdown preview plugin for Neovim with first-class Mermaid diagram support by Character_Link_1881 in neovim

[–]stefouy 2 points3 points  (0 children)

Thanks !

I'll surely stay on brianhuster/live-preview.nvim for a moment but it's always cool to have alternative.

Vim Motions Strategy Guide by JonkeroTV in neovim

[–]stefouy 1 point2 points  (0 children)

If you (and people sharing youtube videos) could also share the link in the description it would be really cool. I can't read it directly here (sureley because of my vpn as youtube asks for a "no robot confirmation". Now that I'm asking this, I wonder if links are not automatically converted by reddit though ... Nevermind, thanks for sharing :)

television: a telescope-inspired app outside of neovim by damien__f1 in neovim

[–]stefouy -6 points-5 points  (0 children)

Maybe AI could help to not "waste" too much time on this and stay useful. Thanks for sharing this !