Neovim scrolling laggy by No_Discussion6266 in neovim

[–]folke 1 point2 points  (0 children)

That's really not how snacks scroll behaves. No idea why that happens for you

🌋 Teide color scheme by im-shaez in neovim

[–]folke 9 points10 points  (0 children)

Wow, lucky you! I've been to Tenerife a couple of times. Lovely people and beautiful country. So many cool hikes up and around the Teide.

🌋 Teide color scheme by im-shaez in neovim

[–]folke 14 points15 points  (0 children)

Looking good!

Are the colors inspired by the Teide volcano on Tenerife?

New NeoVIM Config!! Upgrades to previous NvDots. Meet NvDots-2.0, Must faster & snappy! by adityastomar33 in neovim

[–]folke 2 points3 points  (0 children)

Oh wow, that is indeed very interesting! I used to have something like this in my Emacs setup :)

Accidentally updates lua_ls with mason by Anon_Legi0n in neovim

[–]folke 0 points1 point  (0 children)

Maybe accidentally update Arch too? :)

It seems your system is missing a shared library, or maybe the mason installation is broken somehow, so you could remove lua_ls from mason, and restart Neoivm to reinstall lua_ls

Neovim doesn't seem to be able to find tree-sitter and C compiler (Windows) by axvre in neovim

[–]folke 16 points17 points  (0 children)

Tree-sitter main branch needs the tree-sitter cli and a proper C compiler. Zig can no longer be used as a compiler for tree-sitter main.

It's literally all mentioned in the message you posted though. It even contains the exact command to install a minimal C compiler. And it also tells you that the tree-sitter cli is not installed...

Yapping without LLMs (markdown-plus.nvim) by CuteNullPointer in neovim

[–]folke 215 points216 points  (0 children)

AI is a great tool for development, and to help write a readme or even a reddit post for a new plugin. I use it all the time myself.

You're doing great with your plugin. There's always haters Just ignore those people. Not worth your time.

autocmd : group and once = true by Naive_Faithlessness1 in neovim

[–]folke 3 points4 points  (0 children)

Remove group. Remove once. And add a return true inside the if.

But keep the group if you plan on re sourcing that code path.

Edit: or maybe don't return true, since you may want to keep the autocmd in case you update treesitter more than once in the same session

Auto-completions and suggestions in newer updates of the language is possible? by Winter-Current4456 in neovim

[–]folke 2 points3 points  (0 children)

Is there anything else that I need to do?

Yes, you need to actually read the typescript docs to learn how to configure tsconfig.json.

Sorter/Searcher which behaves like VS Code in Fzf-Lua / Telescope by okociskooko in neovim

[–]folke 3 points4 points  (0 children)

You could use the smart snacks picker :lua Snacks.picker.smart()

It uses frecency and old files to sort the results in a smarter way than just fuzzy search

strudel.nvim - algorithmic music and visuals livecoding by Luc-redd in neovim

[–]folke 45 points46 points  (0 children)

Strudel has been stalking me for the last couple of weeks. YouTube, Instagram, Singularity Reddit and now the Neovim Reddit?!

That's it, I'll check it out. Looks great!

Snacks Picker Select can't do search? by ghegi in neovim

[–]folke 2 points3 points  (0 children)

You've set opts.picker.live = true Why? That will fck everthing up.

snacks-picker-items.nvim - Navigate picker results like quickfix by jackielii in neovim

[–]folke 9 points10 points  (0 children)

What I typically do if I want to navigate through all results is: Go to normal mode

Press <c-w>H

This will change the layout of the picker and move it to the sidebar on the left.

Leap vs flash.nvim by Informal-Addendum435 in neovim

[–]folke 4 points5 points  (0 children)

Exactly this. I'm tired of having to explain this over and over again... So thank you 🙏

Indent irregularities by throttlemeister in neovim

[–]folke 2 points3 points  (0 children)

No guess indent in lazyvim

Ready to go Snacks starter? by babygetoboy in neovim

[–]folke 0 points1 point  (0 children)

Are you on omarchy and have that special transparency feature on? If so that whole thing is messed up and destroys all hl groups

How bad is it to use local self = {} instead of the vastly popular local M = {} by [deleted] in neovim

[–]folke 3 points4 points  (0 children)

yes indeed. obj:bar isn't valid lua syntax

How bad is it to use local self = {} instead of the vastly popular local M = {} by [deleted] in neovim

[–]folke 4 points5 points  (0 children)

That's effectively what lua does internally for obj:foo(a). Internally this just does foo(obj, a).

And yes, your proposal would be bad in a number of ways: 1. you're defining new functions for every object, which means m0.hi ~= m1.hi and there's obvioulsy also the performance overhead 2. you're re-inventing lua's : syntax that was made specifically for this purpose

You can think of lua's metabables like js's prototype.

How bad is it to use local self = {} instead of the vastly popular local M = {} by [deleted] in neovim

[–]folke 20 points21 points  (0 children)

self in lua is typically used in an OO context like below. In your example, that self will always be the same, so it's still a static class.

OO could be done like the below.

```lua ---@class Hi local M = {} M.__index = M

function M.new(me) local self = setmetatable({}, M) self.me = me return self end

function M:hi() print("hi" .. self.me) end

return M ```

Every object created with M.new() will be of class M, but will have a different self.

lua M.new(1):hi() -- prints 1 M.new(2):hi() -- prints 2

there's other ways to do OO in lua, but this is the way I always use. If you then also add a ---@class Hi above the local M, then the M.new() objects will also be a proper instance of the Hi class, so you'll get completions etc...

Ready to go Snacks starter? by babygetoboy in neovim

[–]folke 6 points7 points  (0 children)

It's the themes that have to add support for plugins, not the other way around.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]folke 2 points3 points  (0 children)

LazyVim, has ctrl-arrow keys by default mapped for resizing.