• 0 Posts
  • 21 Comments
Joined 1 year ago
cake
Cake day: October 8th, 2023

help-circle

  • Eglot is really awful when it comes to dynamic configs like workspace config and initialization option. I really went so far as using environment variable and a shell script for using clangd to support switching cmake binary dir. It’s so much easier with vim.

    In case of python, I stick with jedi-language-server for now. When I figure out how to use pyright, I might come back here and comment again.








  • I stopped using worktree completely. It’s basically fancy git clone and it’ll leave unnecessary path histories and I have to index the project from scratch as well.

    I think git checkout is enough unless you work in a repo where git checkout causes huge recompilation. It’s also a good moment to make a commit to the working branch for reflog when I checkout some PR.
    I never use stash either unless i intend to pop the stash within a minute.








  • I have a similar requirement.
    If folder1 and folder2 have different project root marker, it’s possible to start multiple language servers via project-vc-extra-root-markers.

    But the tricky part is when it’s started from folder2, it needs to cd to folder1 before executing the language server.

    I achieve this by creating a wrapper script for language server and create a function that sets an environment variable before executing the script and does do complex things in the script.

    It’d be nice if there was a better solution without depending on .dir-locals.el and etc, like passing a function for the server program so that I don’t have to use a script + environment variable.





  • The tramp maintainer wasn’t really keen on innovating anymore so somebody needs to volunteer.

    I feel like network filesystem + some remote commands/plugins handler would stabilise things more. Even with sshfs mode, remote command doesn’t work.

    It really doesn’t make sense that it supports so many network filesystems and none of them support remote command/process. If I could mount network filesystem locally, I wouldn’t use tramp to begin with.