mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-16 23:35:13 +00:00
Compare commits
4 commits
6e82a568f2
...
36abe5b79d
| Author | SHA1 | Date | |
|---|---|---|---|
|
36abe5b79d |
|||
|
9e95859151 |
|||
|
|
cb1d127d2f | ||
|
|
b7c08147e0 |
2 changed files with 9 additions and 3 deletions
|
|
@ -106,6 +106,7 @@
|
|||
- Add [blink.cmp] support.
|
||||
- Add `LazyFile` user event.
|
||||
- Migrate language modules from none-ls to conform/nvim-lint
|
||||
- Add tsx support in conform and lint
|
||||
|
||||
[diniamo](https://github.com/diniamo):
|
||||
|
||||
|
|
|
|||
|
|
@ -204,17 +204,22 @@ in {
|
|||
(mkIf cfg.format.enable {
|
||||
vim.formatter.conform-nvim = {
|
||||
enable = true;
|
||||
setupOpts.formatters_by_ft.typescript = [cfg.format.type];
|
||||
setupOpts.formatters.${cfg.format.type} = {
|
||||
setupOpts = {
|
||||
formatters_by_ft.typescript = [cfg.format.type];
|
||||
# .tsx files
|
||||
formatters_by_ft.typescriptreact = [cfg.format.type];
|
||||
formatters.${cfg.format.type} = {
|
||||
command = getExe cfg.format.package;
|
||||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf cfg.extraDiagnostics.enable {
|
||||
vim.diagnostics.nvim-lint = {
|
||||
enable = true;
|
||||
linters_by_ft.typescript = cfg.extraDiagnostics.types;
|
||||
linters_by_ft.typescriptreact = cfg.extraDiagnostics.types;
|
||||
|
||||
linters = mkMerge (map (name: {
|
||||
${name}.cmd = getExe diagnosticsProviders.${name}.package;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue