Replies: 1 comment
-
I should also mention that I did disable both the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm on NixOS, and I use the
![image](https://private-user-images.githubusercontent.com/41956073/406729360-1eb9110f-c1ba-415a-a2a3-b0540155d37d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NjI3NjcsIm5iZiI6MTczODk2MjQ2NywicGF0aCI6Ii80MTk1NjA3My80MDY3MjkzNjAtMWViOTExMGYtYzFiYS00MTVhLWEyYTMtYjA1NDAxNTVkMzdkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDIxMDc0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZkYjJhZDIyODc5OWQ4OTM5MGFlODQ5NTZjOTVkZmNlNGM2MGY1M2Q1ZjIyZjk0YTYwYjg0OWJhZWIyNWMzZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.CZvCz9Hs4yUVXJvZDSVsfotfgC0hFPx-8_S1nPVzhVw)
nil
andnixd
language servers for Nix, and normally with cmp,pkgs
would suggest package names from nixpkgs likepkgs.vlc
or in the instance in this screenshot below, different vim packages:However, sometimes this doesn't work as it should, and instead of suggesting package names from nixpkgs, it will suggest text from the buffer like in this screenshot below:
![image](https://private-user-images.githubusercontent.com/41956073/406729456-85330380-7f06-4a46-82ae-0fb228bc3886.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NjI3NjcsIm5iZiI6MTczODk2MjQ2NywicGF0aCI6Ii80MTk1NjA3My80MDY3Mjk0NTYtODUzMzAzODAtN2YwNi00YTQ2LTgyYWUtMGZiMjI4YmMzODg2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDIxMDc0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBlYjNhOTczZTVkMzliOTkxYTE5NWQ0ZDY2NjUyZDk2M2E5YTNiYzMxY2RiMzg5ODRkMGVhOTVjOTAxNTM0YzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YgxLEuSsBo25YCSZj5rd6BP75fG1FgHnHsxXwyW-YIM)
(
Edit: I just found out that if I enter a pretty much any non-alphanumeric character after
pkgs.
in the above instance, then press backspace and enter a letter, it will use the field showing package names, but this is the only way I can get the package names to show up. I've tested this with comma, semicolon, colon, single/double quote, dollar sign, percent sign, and others and they all behave as shown in this video:https://github.com/user-attachments/assets/89174ef8-6389-4e3d-a076-a60a07400efb
)
I am using the default sources configuration found on the documentation site, so the buffer is last in the sources list behind LSP, snippets, and path. What can I do to make sure that the nixpkgs package names are always preferred over buffer text in this situation? I had this working no problem with cmp using both LSPs in the past, so it is not an LSP issue or anything like that.
My blink.nvim configuration via nixvim can be found in my NixOS configuration here: https://github.com/careb0t/dotfiles/blob/ba3f0e87a682c147a3d8d7ff471629c2dcce2f52/home.nix#L894
Beta Was this translation helpful? Give feedback.
All reactions