mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 12:28:32 +00:00
kotlin: cleanup
This commit is contained in:
parent
6f56fa813e
commit
f8303e101c
1 changed files with 3 additions and 4 deletions
|
@ -36,19 +36,18 @@
|
|||
nullConfig = ''
|
||||
table.insert(
|
||||
ls_sources,
|
||||
null_ls.builtins.formatting.typstfmt.with({
|
||||
null_ls.builtins.formatting.kotlinfmt.with({
|
||||
command = "${cfg.format.package}/bin/ktlint",
|
||||
})
|
||||
)
|
||||
'';
|
||||
};
|
||||
# https://github.com/Enter-tainer/typstyle
|
||||
ktfmt = {
|
||||
package = pkgs.ktfmt;
|
||||
nullConfig = ''
|
||||
table.insert(
|
||||
ls_sources,
|
||||
null_ls.builtins.formatting.typstfmt.with({
|
||||
null_ls.builtins.formatting.kotlinfmt.with({
|
||||
command = "${cfg.format.package}/bin/ktfmt",
|
||||
})
|
||||
)
|
||||
|
@ -74,7 +73,7 @@ in {
|
|||
};
|
||||
};
|
||||
format = {
|
||||
enable = mkEnableOption "Typst document formatting" // {default = config.vim.languages.enableFormat;};
|
||||
enable = mkEnableOption "Kotlin document formatting" // {default = config.vim.languages.enableFormat;};
|
||||
|
||||
type = mkOption {
|
||||
description = "Kotlin formatter to use";
|
||||
|
|
Loading…
Add table
Reference in a new issue