linting
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"LazyVim": { "branch": "main", "commit": "12818a6cb499456f4903c5d8e68af43753ebc869" },
|
||||
"SchemaStore.nvim": { "branch": "main", "commit": "f73b116a078178f8062054c43f8697e1e8b6cc77" },
|
||||
"SchemaStore.nvim": { "branch": "main", "commit": "c97985bbe5a0988767216f9b54a8e05d70ce8505" },
|
||||
"bufferline.nvim": { "branch": "main", "commit": "0b2fd861eee7595015b6561dade52fb060be10c4" },
|
||||
"catppuccin": { "branch": "main", "commit": "4fd72a9ab64b393c2c22b168508fd244877fec96" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||
|
||||
@@ -5,20 +5,20 @@ return {
|
||||
inlay_hints = { enabled = false },
|
||||
servers = {
|
||||
ruff = {
|
||||
cmd_env = { RUFF_TRACE = "messages" },
|
||||
init_options = {
|
||||
cmd_env = { RUFF_TRACE = "messages" },
|
||||
init_options = {
|
||||
settings = {
|
||||
logLevel = "error",
|
||||
configuration = os.getenv("LOCALAPPDATA") .. "/nvim/ruff.toml"
|
||||
logLevel = "error",
|
||||
configuration = os.getenv("LOCALAPPDATA") .. "/nvim/ruff.toml",
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>co",
|
||||
LazyVim.lsp.action["source.organizeImports"],
|
||||
desc = "Organize Imports",
|
||||
"<leader>co",
|
||||
LazyVim.lsp.action["source.organizeImports"],
|
||||
desc = "Organize Imports",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
basedpyright = {
|
||||
cmd_env = { RUFF_TRACE = "messages" },
|
||||
@@ -41,7 +41,7 @@ return {
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = function(_, opts)
|
||||
local servers = { "basedpyright", "ruff"}
|
||||
local servers = { "basedpyright", "ruff" }
|
||||
for _, server in ipairs(servers) do
|
||||
opts.servers[server] = opts.servers[server] or {}
|
||||
opts.servers[server].enabled = server == "basedpyright" or server == "ruff"
|
||||
@@ -71,8 +71,22 @@ return {
|
||||
"mfussenegger/nvim-dap-python",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>dPt", function() require('dap-python').test_method() end, desc = "Debug Method", ft = "python" },
|
||||
{ "<leader>dPc", function() require('dap-python').test_class() end, desc = "Debug Class", ft = "python" },
|
||||
{
|
||||
"<leader>dPt",
|
||||
function()
|
||||
require("dap-python").test_method()
|
||||
end,
|
||||
desc = "Debug Method",
|
||||
ft = "python",
|
||||
},
|
||||
{
|
||||
"<leader>dPc",
|
||||
function()
|
||||
require("dap-python").test_class()
|
||||
end,
|
||||
desc = "Debug Class",
|
||||
ft = "python",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
if vim.fn.has("win32") == 1 then
|
||||
|
||||
Reference in New Issue
Block a user