From db39188eefe20c6ac0e90b03bc6b50d495a97de7 Mon Sep 17 00:00:00 2001 From: Daveanand Mannie Date: Mon, 2 Sep 2024 18:49:36 -0400 Subject: [PATCH] linting --- lazy-lock.json | 2 +- lua/plugins/python.lua | 40 +++++++++++++++++++++++++++------------- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index eb52fb4..a7b88ef 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -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" }, diff --git a/lua/plugins/python.lua b/lua/plugins/python.lua index 449dd36..11ef327 100644 --- a/lua/plugins/python.lua +++ b/lua/plugins/python.lua @@ -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 = { { - "co", - LazyVim.lsp.action["source.organizeImports"], - desc = "Organize Imports", + "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 = { - { "dPt", function() require('dap-python').test_method() end, desc = "Debug Method", ft = "python" }, - { "dPc", function() require('dap-python').test_class() end, desc = "Debug Class", ft = "python" }, + { + "dPt", + function() + require("dap-python").test_method() + end, + desc = "Debug Method", + ft = "python", + }, + { + "dPc", + function() + require("dap-python").test_class() + end, + desc = "Debug Class", + ft = "python", + }, }, config = function() if vim.fn.has("win32") == 1 then