oxalica / nil

NIx Language server, an incremental analysis assistant for writing in Nix.
Apache License 2.0
1.28k stars 39 forks source link

Completions only showing after typing a letter #133

Closed amacfie closed 3 months ago

amacfie commented 4 months ago

I'm seeing this in vim-lsp and lsp4ij, others have seen it in emacs: https://github.com/doomemacs/doomemacs/issues/7735.

Example file (test.nix):

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

{
  foo = builtins.
}

Putting cursor after builtins. and triggering completion has no result, but typing a letter like a and then triggering completion brings up the expected list.

log.txt

oxalica commented 3 months ago

Vim/coc.nvim, Neovim/native lsp and VSCodium all work well. I think emacs is to be blamed here. Also that you can retry with the latest master build.

Screenshot_20240530_124520

amacfie commented 3 months ago

Could you compare the log I included with the log from an editor where it works? The log shows that no completions are returned.