[UPDATE] formating and some wezterm settings

This commit is contained in:
Daveanand Mannie
2025-02-09 19:38:59 -05:00
parent 88de1d9c40
commit edb7454e48
4 changed files with 17 additions and 20 deletions

12
lua/plugins/conform.lua Normal file
View File

@@ -0,0 +1,12 @@
return {
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
-- python = { "ruff" },
python = { "black" },
},
},
dependencies = {
"mason.nvim",
},
}

View File

@@ -2,20 +2,9 @@ return {
"mfussenegger/nvim-lint",
config = function()
local lint = require("lint")
lint.linters_by_ft = {
python = { "flake8" },
}
-- local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
-- vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
-- group = lint_augroup,
-- callback = function()
-- lint.try_lint()
-- end,
-- })
vim.keymap.set("n", "<leader>l", function()
lint.try_lint()
end, { desc = "Trigger linting for current file" })

View File

@@ -35,6 +35,7 @@ indent-width = 4
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
preview = true
select = [
# pycodestyle
"E",
@@ -54,7 +55,7 @@ select = [
# pep8-naming
"N",
# flake8-annotations
"ANN",
# "ANN",
# pylint
"PL",
"ARG"
@@ -62,11 +63,6 @@ select = [
ignore = [
"N812",
"SIM108",
"ANN101",
"ANN201",
"ANN202",
"ANN205",
"ANN204",
"PLR0911"
]
@@ -77,4 +73,4 @@ unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[format]
quote-style = "single"
quote-style = "double"

View File

@@ -27,7 +27,7 @@ config.initial_cols = 129
--tansparent
local is_transparent = true
config.window_background_opacity = 0.8
config.window_background_opacity = 0.65
config.text_background_opacity = 0.4
--key map
@@ -51,7 +51,7 @@ config.keys = {
else
-- Set to transparent
window:set_config_overrides({
window_background_opacity = 0.8,
window_background_opacity = 0.65,
text_background_opacity = 0.4,
})
is_transparent = true