vim

Dumch 2023-01-05T13:36:43.178359Z

Do you know which part of neovim is in charge of highlighting matching parents? I can't remember how I set it up or if it worked right away. It no longer does, and I can't figure out why.

lispyclouds 2023-01-05T13:45:28.181859Z

i assume you mean parens 😅 ? if yes, the inbuilt matchparen https://github.com/neovim/neovim/blob/master/runtime/plugin/matchparen.vim should do it when on a matching brace or paren if you havent disabled it.

🙂 1
Dumch 2023-01-05T13:49:32.095269Z

Yes, I was experimenting with startup optimization, which could have caused the problem. Thank you very much!

lispyclouds 2023-01-05T14:02:26.770349Z

yeah if you set g:loaded_matchparen to 1 that should causes it to not load

lispyclouds 2023-01-05T14:09:57.858929Z

since startup time came up, lemme know if you want some more ideas, been down that route not too long back, averaging now ~10 ms 😄

2
Dumch 2023-01-05T14:13:35.934939Z

That's crazy! 🙂 I have about 170

Dumch 2023-01-05T14:13:43.881699Z

have you migrated from packer to lazy?

lispyclouds 2023-01-05T14:14:04.525119Z

of course, that was the start of the rabbit hole 😛

lispyclouds 2023-01-05T14:14:51.036419Z

here's my dotfiles if you want some things to pick from: https://github.com/lispyclouds/dotfiles happy to brainstorm more!

Dumch 2023-01-05T14:17:31.726719Z

Thank you! One side quesion. I see you also use Yabai. Do you have a problem with the fact that if you add a scripting addition to support transparency, Chrome's search window may end up being hidden by the Chrome main window? I mean, you press cmd+f and don't see a search window.

Dumch 2023-01-05T14:18:21.029449Z

I am also using WezTerm btw 🙂

lispyclouds 2023-01-05T14:20:49.953049Z

ah not too familiar with Chrome, havent been using it for quite a while. Ive seen some issues with floating windows, but you can try adding it to always float: yabai -m rule --add app="^Chrome$" manage=off but dont quote me on it, not sure if that helps 😄

lispyclouds 2023-01-05T14:21:08.723239Z

depends on how chrome implements its floating thing

lispyclouds 2023-01-05T14:22:03.303029Z

yeah big fan of wez too, essentially getting to a point of i will use a thing if i can lua script it 😛

Dumch 2023-01-05T14:22:12.343849Z

The same problem may occur in osx settings, when changing "Spoken content" System voice for example

Dumch 2023-01-05T14:23:15.021169Z

Haven't you though on migrating you config to fennel?

lispyclouds 2023-01-05T14:23:53.811369Z

yeah also im more on the linux and sway side, work mac has bare minumum tiling to match my own linux setup

lispyclouds 2023-01-05T14:25:19.038129Z

did the fennel thing at one point, didnt really see much benefit than raw lua although the lispyness is nice. found myself not doing much evaling the editor

lispyclouds 2023-01-05T14:25:54.125809Z

also with raw lua i have more control on the caching and lower bits

lispyclouds 2023-01-05T14:27:24.810749Z

simply doing :lua= <some lua expr> when i need it is good enough eval for me 😄

Dumch 2023-01-05T14:35:55.468039Z

> yabai -m rule --add app="^Chrome$" manage=off I have this stuff for things like system settings. It works like this: window positioning and resizing are not managed, but floating windows are sometimes hidden (my scripti-addition problem persists).

lispyclouds 2023-01-05T14:37:15.890649Z

this would be beyond my basic yabai abilities unfortunately but the problem seems to be common enough for people to run into it i think

Dumch 2023-01-05T14:38:02.539779Z

My current nvim config is in fennel (I migrated from vimscript to fennel without even trying lua). I would have migrated to lua by now if it hadn't been for the existence of https://fennel-lang.org/see (a lua->fennel translator).

Dumch 2023-01-05T14:38:33.578569Z

Just in case, here are my dotfiels https://github.com/D00mch/dotfiles/tree/master/.config/nvim

lispyclouds 2023-01-05T14:40:42.262199Z

nice! yeah as much as i love fennel, feels like i never really use its lispyness in the nvim context. also working with lua in parts of my job makes it equally familiar too

lispyclouds 2023-01-05T14:41:10.091199Z

mostly use it in nginx contexts

lispyclouds 2023-01-05T14:45:38.007149Z

looking at your plugins.fnl, the startup time secret sauce is pretty much deferring plugin loads as much as possible. moving to lazy helps like you dont need impatient but getting the lazy load order right is where it all is

Dumch 2023-01-05T14:47:34.126549Z

Thank you for looking at my dotfiles. I have a todo note to migrate to lazy, maybe this weekends.

lispyclouds 2023-01-05T14:49:39.924459Z

happy rabbit hole-ing 😛

🙏🏻 1
grazfather 2023-01-06T14:52:32.478799Z

Why barbar over e.g. bufferline?

lispyclouds 2023-01-06T14:55:57.368129Z

Essentially to have a correct buffer closing behavior. afaik bufferline cant close and delete buffers without messing up my layouts and needed https://github.com/famiu/bufdelete.nvim to handle that. barbar does both and looks kinda nicer too 😅

lispyclouds 2023-01-06T14:56:50.556079Z

all of my mappings https://github.com/lispyclouds/dotfiles/blob/main/nvim/lua/mappings.lua#L20-L22 are provided by barbar

grazfather 2023-01-06T15:04:50.585979Z

hehe impl.map. How much longer before you cave and switch to fennel?

grazfather 2023-01-06T15:05:05.088739Z

I might give barbar a shot, though I don't have issues with bufferline

lispyclouds 2023-01-06T15:06:03.526969Z

heh, went down the fennel route, just for a few fns and not using any of the other goodness, felt like im not doing justice to it 😄

lispyclouds 2023-01-06T15:06:40.862169Z

yeah the buffer closing thing is something i do a lot, might not be an issue for everyone.

lispyclouds 2023-01-06T15:09:09.323049Z

not sure if fennel's compilation via aniseed/hotpot etc could mess up lazy.nvim's awesome caching. also lazy takes over the module load order, load upon require etc. at this point quite wary of adding in fennel infra 😛

grazfather 2023-01-06T15:20:47.551039Z

ah yeah i imagine that that would cause trouble. You could choose to not use aniseed and just compile ahead of time but that is less fun. Also i think my aniseed compile takes a decent fraction of my startup time. I just hate lua syntax

lispyclouds 2023-01-08T10:10:52.375659Z

im also no fan of the syntax, but i try to offset it with aggressively trying to keep the config simple and lean.

👍 1