Skip to content

helix: add keybind to quickly run a python file#62

Closed
llakala wants to merge 1031 commits intomainfrom
powerhelix
Closed

helix: add keybind to quickly run a python file#62
llakala wants to merge 1031 commits intomainfrom
powerhelix

Conversation

@llakala
Copy link
Owner

@llakala llakala commented Oct 11, 2024

Not done yet! Just making it a draft PR so github doesn't tell me powerhelix recently pushed changes. Motherfucker, I know. Who do you think pushed it?

llakala added 21 commits October 8, 2024 12:22
…ific config doesn't affect our normal yazi config
…s word end, and holding alt makes commands use WORDS
Previously, we gave Helix access to pylsp and all its plugins by creating
another instance of Python with Pylsp and its plugins as that instance's
"modules" (what you can think of as the PIP requirements). But, this meant
that Helix was using a different instance of Python than the rest of my
system. This was bad for many reasons.

Now, we directly override pylsp to add our plugins as dependencies. This
is unfortunately a lot more verbose already, and we haven't replicated the
custom plugins yet. But it's far better in practice.
Previously, we'd set up sorting imperatively. Now, it's declarative,
and sorted naturally, so `hw10` is after `hw1`
Makes more sense as an abstraction. At some point we could think about
spliting this into a subfolder, but that'd require changing our recursion
strategy or manually importing, so we'll delay that for another day.
Lets us override values, since Git transfers everything from
extraConfig into iniContent. If we want to `lib.mkForce` something, we
have to be in iniContent to be able to override it.
Accidentally deleted a file in the last commit without moving its
contents fully :3
Fixes #84
I'm very exhausted and commit messages feel beyond me, but I'll do my best.
Easier than I thought. Put it in a separate file because putting it all
in language-servers felt like a sin. Maybe I should move the content into
the flake exports for packages, and just grab the package via `self`.
Problem for another day.
Previously, the other caches were overriding the helix binary cache, since
they were listed first. We use `lib.mkBefore` to avoid this.
Uses the alias `nrpf`, meant to hypothetically stand for `nix repl flake`.
No grammar yet, but it's looking more and more like that's not happening
without a PR to Helix itself.
Now, it automatically opens when opening a markdown file, and can show
images
We had to get a little fancy. The other less options expected a string
with each option separated by a space. This one expected a list of strings.
Thankfully, a wonderful lib function came in handy.
Currently using the separate branch until it gets merged.
Not necessary with my current workflow, and makes lots of unnecessary
cached dotfiles
@llakala
Copy link
Owner Author

llakala commented Dec 16, 2024

Moving this to #99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant