Skip to content

Commit 804bfe2

Browse files
fix(formatting: python
In the first place, use `ruff_format` and not `ruff`. In the second place, do not allow mason to set the PATH ever. Do it manually in `zshrc`. Mason has an option for appending the path but it doesn't work. I need mason to be last so that projects that are very picky about versions (of e.g. ruff) are allowed to set the ruff version.
1 parent e90bf63 commit 804bfe2

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

packages/nvim/lua/plugins/formatting.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ return {
3939
typescript = { "prettier" },
4040
go = { "golines", "goimports", "gofmt" },
4141
toml = { "taplo" },
42+
python = { "ruff_format" },
4243
},
4344
},
4445
},

packages/nvim/lua/plugins/lsp.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ return {
7070
return true
7171
end,
7272
},
73+
PATH = "skip",
7374
},
7475
},
7576
{

packages/zsh/path.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ fi
3333
__ensure_first_path "/usr/local/bin"
3434
__ensure_first_path "/opt/homebrew/bin"
3535
__ensure_first_path "/opt/homebrew/sbin"
36+
__ensure_first_path "$HOME/.local/share/nvim/mason/bin"
3637
__ensure_first_path "$CARGO_HOME/bin"
3738
__ensure_first_path "$HOME/src/github/malleatus/shared_binutils/global/target/debug"
3839
__ensure_first_path "$HOME/src/github/hjdivad/dotfiles/packages/binutils/crates/global/target/debug"

0 commit comments

Comments
 (0)