kotlin: cleanup

This commit is contained in:
Soliprem 2024-10-07 13:19:05 +02:00
parent 6f56fa813e
commit f8303e101c

View file

@ -36,19 +36,18 @@
nullConfig = '' nullConfig = ''
table.insert( table.insert(
ls_sources, ls_sources,
null_ls.builtins.formatting.typstfmt.with({ null_ls.builtins.formatting.kotlinfmt.with({
command = "${cfg.format.package}/bin/ktlint", command = "${cfg.format.package}/bin/ktlint",
}) })
) )
''; '';
}; };
# https://github.com/Enter-tainer/typstyle
ktfmt = { ktfmt = {
package = pkgs.ktfmt; package = pkgs.ktfmt;
nullConfig = '' nullConfig = ''
table.insert( table.insert(
ls_sources, ls_sources,
null_ls.builtins.formatting.typstfmt.with({ null_ls.builtins.formatting.kotlinfmt.with({
command = "${cfg.format.package}/bin/ktfmt", command = "${cfg.format.package}/bin/ktfmt",
}) })
) )
@ -74,7 +73,7 @@ in {
}; };
}; };
format = { format = {
enable = mkEnableOption "Typst document formatting" // {default = config.vim.languages.enableFormat;}; enable = mkEnableOption "Kotlin document formatting" // {default = config.vim.languages.enableFormat;};
type = mkOption { type = mkOption {
description = "Kotlin formatter to use"; description = "Kotlin formatter to use";