[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", "mfussenegger/nvim-lint",
config = function() config = function()
local lint = require("lint") local lint = require("lint")
lint.linters_by_ft = { lint.linters_by_ft = {
python = { "flake8" }, 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() vim.keymap.set("n", "<leader>l", function()
lint.try_lint() lint.try_lint()
end, { desc = "Trigger linting for current file" }) 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. # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default. # McCabe complexity (`C901`) by default.
preview = true
select = [ select = [
# pycodestyle # pycodestyle
"E", "E",
@@ -54,7 +55,7 @@ select = [
# pep8-naming # pep8-naming
"N", "N",
# flake8-annotations # flake8-annotations
"ANN", # "ANN",
# pylint # pylint
"PL", "PL",
"ARG" "ARG"
@@ -62,11 +63,6 @@ select = [
ignore = [ ignore = [
"N812", "N812",
"SIM108", "SIM108",
"ANN101",
"ANN201",
"ANN202",
"ANN205",
"ANN204",
"PLR0911" "PLR0911"
] ]
@@ -77,4 +73,4 @@ unfixable = []
# Allow unused variables when underscore-prefixed. # Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[format] [format]
quote-style = "single" quote-style = "double"

View File

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