mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-02 17:15:55 +00:00
fmt: ts.nix
This commit is contained in:
parent
fdf5736da2
commit
537a2e5b2d
1 changed files with 6 additions and 4 deletions
|
|
@ -306,10 +306,12 @@ in {
|
|||
vim.formatter.conform-nvim = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
formatters_by_ft.javascript = [cfg.format.type];
|
||||
formatters_by_ft.typescript = [cfg.format.type];
|
||||
# .tsx files
|
||||
formatters_by_ft.typescriptreact = [cfg.format.type];
|
||||
formatters_by_ft = {
|
||||
javascript = [cfg.format.type];
|
||||
typescript = [cfg.format.type];
|
||||
# .tsx files
|
||||
typescriptreact = [cfg.format.type];
|
||||
};
|
||||
formatters.${cfg.format.type} = {
|
||||
command = getExe cfg.format.package;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue