mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
languages/python: add formatting option for ruff check --fix
This commit is contained in:
parent
d36996c8ba
commit
8a6afa18ff
2 changed files with 24 additions and 0 deletions
|
@ -522,3 +522,17 @@
|
||||||
|
|
||||||
- Fixed `typescript` treesitter grammar not being included by default.
|
- Fixed `typescript` treesitter grammar not being included by default.
|
||||||
|
|
||||||
|
- Add [nvim-biscuits] to show block context. Available at
|
||||||
|
`vim.utility.nvim-biscuits`.
|
||||||
|
|
||||||
|
[JManch](https://github.com/JManch):
|
||||||
|
|
||||||
|
- Fix default [blink.cmp] sources "path" and "buffer" not working when
|
||||||
|
`autocomplete.nvim-cmp.enable` was disabled and
|
||||||
|
`autocomplete.nvim-cmp.sources` had not been modified.
|
||||||
|
|
||||||
|
[valterschutz](https://github.com/valterschutz):
|
||||||
|
|
||||||
|
[ruff]: (https://github.com/astral-sh/ruff)
|
||||||
|
|
||||||
|
- Add [ruff-fix] as a formatter option in `vim.languages.python.format.type`.
|
||||||
|
|
|
@ -149,6 +149,16 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ruff-check = {
|
||||||
|
package = pkgs.writeShellApplication {
|
||||||
|
name = "ruff-check";
|
||||||
|
runtimeInputs = [pkgs.ruff];
|
||||||
|
text = ''
|
||||||
|
ruff check --fix --exit-zero -
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultDebugger = "debugpy";
|
defaultDebugger = "debugpy";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue