diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua new file mode 100644 index 0000000..bc31726 --- /dev/null +++ b/lua/plugins/conform.lua @@ -0,0 +1,12 @@ +return { + "stevearc/conform.nvim", + opts = { + formatters_by_ft = { + -- python = { "ruff" }, + python = { "black" }, + }, + }, + dependencies = { + "mason.nvim", + }, +} diff --git a/lua/plugins/linting.lua b/lua/plugins/linting.lua index 269f0c4..5222e44 100644 --- a/lua/plugins/linting.lua +++ b/lua/plugins/linting.lua @@ -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", "l", function() lint.try_lint() end, { desc = "Trigger linting for current file" }) diff --git a/ruff.toml b/ruff.toml index a63b522..509a1c7 100644 --- a/ruff.toml +++ b/ruff.toml @@ -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" diff --git a/wezterm.lua b/wezterm.lua index 6b2372c..41999ed 100644 --- a/wezterm.lua +++ b/wezterm.lua @@ -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