lsp/null-ls: use string type for diagnostic format

This commit is contained in:
NotAShelf 2024-05-16 19:35:19 +03:00
parent cfbed8ceb1
commit f0f2c08e9f
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -1,8 +1,6 @@
{lib, ...}: let {lib, ...}: let
inherit (lib.options) mkEnableOption mkOption; inherit (lib.options) mkEnableOption mkOption;
inherit (lib.types) attrsOf str int; inherit (lib.types) attrsOf str int;
inherit (lib.generators) mkLuaInline;
inherit (lib.nvim.types) luaInline;
in { in {
options.vim.lsp.null-ls = { options.vim.lsp.null-ls = {
enable = mkEnableOption "null-ls, also enabled automatically"; enable = mkEnableOption "null-ls, also enabled automatically";
@ -10,8 +8,8 @@ in {
debug = mkEnableOption "debugging information for `null-ls"; debug = mkEnableOption "debugging information for `null-ls";
diagnostics_format = mkOption { diagnostics_format = mkOption {
type = luaInline; type = str;
default = mkLuaInline "[#{m}] #{s} (#{c})"; default = "[#{m}] #{s} (#{c})";
description = "Diagnostic output format for null-ls"; description = "Diagnostic output format for null-ls";
}; };