1

Neovim: Configure nixd + disable nil

This commit is contained in:
2024-10-11 04:29:27 +02:00
parent aab27a4025
commit 4db5a75a80

View File

@ -1,4 +1,6 @@
{ {
username,
hostname,
config, config,
lib, lib,
mylib, mylib,
@ -884,13 +886,34 @@ in {
{name = "clojure_lsp";} {name = "clojure_lsp";}
{name = "cmake";} {name = "cmake";}
{name = "lua_ls";} {name = "lua_ls";}
{name = "nil_ls";} # {name = "nil_ls";} # TODO: To use together with nixd, its hover functionality needs to be disabled to not conflict
{name = "ltex";} {
name = "ltex";
extraOptions.settings = {
ltex = {
checkFrequency = "save";
};
};
}
{ {
name = "nixd"; name = "nixd";
# TODO: Figure out how to structure this attrset # TODO: Figure out how to structure this attrset
extraOptions = { extraOptions.settings = {
nixd = { nixd = {
nixpkgs = {
expr = "import <nixpkgs> { }";
};
formatting = {
command = ["alejandra"];
};
options = {
nixos = {
expr = "(builtins.getFlake \"/home/${username}/NixFlake\").nixosConfigurations.${hostname}.options";
};
home_manager = {
expr = "(builtins.getFlake \"/home/${username}/NixFlake\").homeConfigurations.\"${username}@${hostname}\".options";
};
};
diagnostic = { diagnostic = {
suppress = [ suppress = [
"sema-escaping-with" "sema-escaping-with"
@ -1015,7 +1038,7 @@ in {
''; '';
}; };
ltex-extra = rec { ltex-extra = {
name = "ltex_extra"; name = "ltex_extra";
pkg = pkgs.vimPlugins.ltex_extra-nvim; pkg = pkgs.vimPlugins.ltex_extra-nvim;
lazy = true; lazy = true;