[nix] Fix bugs and switch to nil for nix lsp

This commit is contained in:
Alyxia Sother 2023-06-09 18:50:35 +02:00
parent 849c0fef38
commit 3afd67e5cd
No known key found for this signature in database
GPG Key ID: 01E16C4E775A37E4
3 changed files with 8 additions and 6 deletions

View File

@ -21,7 +21,6 @@ let
ffmpeg ffmpeg
fzf fzf
gh gh
# git # already managed by home-manager
git-crypt git-crypt
gitui gitui
gnupg gnupg
@ -29,7 +28,6 @@ let
kubectl kubectl
kubelogin-oidc kubelogin-oidc
mosh mosh
# neovim # already managed by home-manager
nixpkgs-fmt nixpkgs-fmt
ripgrep ripgrep
sops sops

View File

@ -1,4 +1,4 @@
{ dotfiles, ... }: { pkgs, dotfiles, ... }:
{ {
programs.git = { programs.git = {

View File

@ -1,4 +1,4 @@
{ dotfiles, ... }: { pkgs, dotfiles, ... }:
{ {
programs.neovim = { programs.neovim = {
@ -11,10 +11,14 @@
enable = true; enable = true;
settings = { settings = {
languageServer = { languageserver = {
nix = { nix = {
command = "rnix-lsp"; command = "nil";
filetypes = [ "nix" ]; filetypes = [ "nix" ];
rootPatterns = [ "flake.nix" ];
"settings.nil" = {
"formatting.command" = ["nixpkgs-fmt"];
};
}; };
"go.goPlsOptions" = { "go.goPlsOptions" = {
completion = true; completion = true;