vim.opt.tabstop = 4 vim.opt.shiftwidth = 4 vim.opt.softtabstop = 4 vim.opt.expandtab = true vim.api.nvim_set_keymap("n", "*li", ":!ruff --line-length=132 '%'", { noremap = true }) vim.api.nvim_set_keymap("n", "*fm", ":!black --line-length 132 '%'", { noremap = true }) local linters = require "lvim.lsp.null-ls.linters" linters.setup { -- Ruff does pycodestyle -- { -- command = "pycodestyle", -- args = { "--max-line-length=132", "--ignore=E402" }, -- }, { command = "pydocstyle" } } local formatters = require "lvim.lsp.null-ls.formatters" formatters.setup { { command = "black" } } -- Might be nice someday -- lvim.format_on_save = true require("lvim.lsp.manager").setup("ruff_lsp")