[nix] Redo and restructure the entire config

Thanks @KaitlynEthylia :)
This commit is contained in:
Alyxia Sother 2024-07-11 19:07:47 +02:00
parent 19b92cd8fd
commit 2daf5f1b05
No known key found for this signature in database
GPG key ID: 01E16C4E775A37E4
13 changed files with 378 additions and 302 deletions

38
nix/home/nvim.nix Normal file
View file

@ -0,0 +1,38 @@
{ self, pkgs, ... }:
{
programs.neovim = {
enable = true;
package = pkgs.neovim-unwrapped;
extraConfig = ''source ~/.dotfiles/nvim/init.vim"source ${self}/nvim/init.vim'';
coc = {
enable = true;
settings = {
languageserver = {
nix = {
command = "nil";
filetypes = [ "nix" ];
rootPatterns = [ "flake.nix" ];
"settings.nil" = {
"formatting.command" = [ "nixpkgs-fmt" ];
};
};
"go.goPlsOptions" = {
completion = true;
completeUnimported = true;
};
rescript = {
enable = true;
command = "rescript-language-server";
args = [ "--node-ipc" ];
filetypes = [ "rescript" ];
rootPatterns = [ "rescript.json" "bsconfig.json" ];
};
};
};
};
};
}