[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
fzf
gh
# git # already managed by home-manager
git-crypt
gitui
gnupg
@ -29,7 +28,6 @@ let
kubectl
kubelogin-oidc
mosh
# neovim # already managed by home-manager
nixpkgs-fmt
ripgrep
sops

View File

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

View File

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