mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-11 13:16:32 +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 = {
|
vim.formatter.conform-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
setupOpts = {
|
setupOpts = {
|
||||||
formatters_by_ft.javascript = [cfg.format.type];
|
formatters_by_ft = {
|
||||||
formatters_by_ft.typescript = [cfg.format.type];
|
javascript = [cfg.format.type];
|
||||||
# .tsx files
|
typescript = [cfg.format.type];
|
||||||
formatters_by_ft.typescriptreact = [cfg.format.type];
|
# .tsx files
|
||||||
|
typescriptreact = [cfg.format.type];
|
||||||
|
};
|
||||||
formatters.${cfg.format.type} = {
|
formatters.${cfg.format.type} = {
|
||||||
command = getExe cfg.format.package;
|
command = getExe cfg.format.package;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue