Skip to content

Commit

Permalink
lsp/null-ls: use string type for diagnostic format
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf committed May 16, 2024
1 parent cfbed8c commit f0f2c08
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/plugins/lsp/null-ls/null-ls.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.types) attrsOf str int;
inherit (lib.generators) mkLuaInline;
inherit (lib.nvim.types) luaInline;
in {
options.vim.lsp.null-ls = {
enable = mkEnableOption "null-ls, also enabled automatically";

debug = mkEnableOption "debugging information for `null-ls";

diagnostics_format = mkOption {
type = luaInline;
default = mkLuaInline "[#{m}] #{s} (#{c})";
type = str;
default = "[#{m}] #{s} (#{c})";
description = "Diagnostic output format for null-ls";
};

Expand Down

0 comments on commit f0f2c08

Please sign in to comment.