Compare commits

..

No commits in common. "385793a2ea8317dd8b35d57f2b9a7e20d3f7bc31" and "96f3524a4ddd8229da0c61cfef8f701259fcbe51" have entirely different histories.

4 changed files with 6 additions and 11 deletions

View file

@ -1,7 +1,7 @@
{lib}: let
inherit (builtins) isString getAttr;
inherit (lib.options) mkOption;
inherit (lib.types) listOf bool str submodule attrsOf anything either nullOr oneOf;
inherit (lib.types) listOf bool str submodule attrsOf anything either nullOr;
inherit (lib.nvim.attrsets) mapListToAttrs;
inherit (lib.nvim.types) luaInline;
in {
@ -62,7 +62,7 @@ in {
};
cmd = mkOption {
type = nullOr (listOf (oneOf [str luaInline]));
type = nullOr (listOf str);
default = null;
description = "Command used to start the LSP server";
};

View file

@ -11,7 +11,7 @@
inherit (lib.attrsets) mapAttrsToList attrNames filterAttrs;
inherit (lib.generators) mkLuaInline;
inherit (lib.nvim.languages) lspOptions;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.dag) entryAfter;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.lsp;
@ -82,7 +82,8 @@ in {
(mkIf (cfg.servers != {}) {
# Enable lspconfig in order to merge in the predefined opts
vim.luaConfigRC.lsp-servers = entryAnywhere ''
vim.lsp.lspconfig.enable = true;
vim.luaConfigRC.lsp-servers = entryAfter ["lspconfig"] ''
-- Individual LSP configurations managed by nvf.
${concatLines lspConfigurations}

View file

@ -20,9 +20,7 @@
servers = {
marksman = {
enable = true;
cmd = [(getExe pkgs.marksman) "server"];
filetypes = ["markdown" "markdown.mdx"];
root_markers = [".marksman.toml" ".git"];
cmd = ["${pkgs.marksman}/bin/marksman" "server"];
};
};

View file

@ -41,8 +41,6 @@
settings = {
nil = formattingCmd;
};
filetypes = ["nix"];
root_markers = [".git" "flake.nix"];
};
nixd = {
@ -51,8 +49,6 @@
settings = {
nixd = formattingCmd;
};
filetypes = ["nix"];
root_markers = [".git" "flake.nix"];
};
};