3 ms·
Note that when you use LSP with Emacs, installing language servers can quickly lead to dependency hell. I use home-manager[0] to specify which language servers
by siraben 4y ago
Note that when you use LSP with Emacs, installing language servers can quickly lead to dependency hell. I use home-manager[0] to specify which language servers I want installed[1] (among other things such as compilers for different languages) so integration with Emacs is reproducible and up-to-date across any distro, including Debian.
[0] https://github.com/nix-community/home-manager https://github.com/nix-community/home-manager
[1] https://github.com/siraben/dotfiles/blob/bad2e8a29b6622e10bc48ae98e015957b54200a6/home-manager/.config/nixpkgs/packages.nix#L81 https://github.com/siraben/dotfiles/blob/bad2e8a29b6622e10bc...
- Kaze404 4y agoI like using Nix shell for this as well. All of my projects specify their dependencies (compiler, formatter, lsp, etc) there, and with direnv-mode it means I can run Emacs from anywhere and when opening a project with a nix shell specified it automatically picks up everything. It's really neat.
- mdlman 4y agoThis sounds really cool. Do you have any recommended resources for this?
- Kaze404 4y agoI pretty much just tried a bunch of different things until they worked, so I don't have anything to link just yet. I'll make a post on my blog (https://leite.dev https://leite.dev) about it tonight and reply again with the link once it's live.