Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completion in Doom Emacs doesn't work #117

Open
hexagonal-sun opened this issue Dec 22, 2023 · 2 comments
Open

Completion in Doom Emacs doesn't work #117

hexagonal-sun opened this issue Dec 22, 2023 · 2 comments
Labels
A-emacs Area: Emacs

Comments

@hexagonal-sun
Copy link

Hello,

I have nil enabled as the lsp plugin in my doom configuration for editing nix files. The server starts successfully when I open a nix file to edit; I can run code actions and see diagnostics relating to my code, however there is no completion at all.

As a test, I have created a file ~/foo/test.nix with:

{ config, lib, pkgs, ... }:

{
  foo = builtins
}

I then open the file in Emacs, move the cursor to the end of the builtins keyword and insert a .. At that point I would expect completion to appear showing all builtin functions.

I have attached a log of all the IO occuring between Emacs and nil.

nil.log

Note that if I open the same file with the same version of nil in VSCode, completion works.

@maurobalbi
Copy link
Contributor

The client should send a textDocument/completion request to ask for completions, however no such request is sent to the server according to the logs. Seems there is something going wrong on the client side.

@oxalica oxalica added the A-emacs Area: Emacs label Jan 7, 2024
@Celibistrial
Copy link

did you manage to solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-emacs Area: Emacs
Projects
None yet
Development

No branches or pull requests

4 participants