diff options
Diffstat (limited to 'nvim-primeagen')
-rw-r--r-- | nvim-primeagen/after/plugin/ale.lua | 4 | ||||
-rw-r--r-- | nvim-primeagen/after/plugin/dap.lua | 11 | ||||
-rw-r--r-- | nvim-primeagen/after/plugin/neotest-python.lua | 8 | ||||
-rw-r--r-- | nvim-primeagen/lua/lemon/packer.lua | 2 |
4 files changed, 21 insertions, 4 deletions
diff --git a/nvim-primeagen/after/plugin/ale.lua b/nvim-primeagen/after/plugin/ale.lua index 5575f9f..b3b5c0d 100644 --- a/nvim-primeagen/after/plugin/ale.lua +++ b/nvim-primeagen/after/plugin/ale.lua @@ -1,6 +1,6 @@ -- Set the configuration options for the plugin local linters = { - python = {'ruff', 'flake8'}, + python = {'ruff', 'flake8', 'pyright'}, ocaml = {'merlin'}, cpp = {'clang'}, yaml = {'yamllint'}, @@ -9,7 +9,7 @@ local linters = { } local fixers = { - python = {'ruff', 'isort', 'yapf', 'black', 'pyright'}, + python = {'ruff', 'isort', 'yapf', 'black', 'autoimport'}, go = {'gofmt'}, rust = {'rustfmt'}, } diff --git a/nvim-primeagen/after/plugin/dap.lua b/nvim-primeagen/after/plugin/dap.lua index 495445f..fcfb94a 100644 --- a/nvim-primeagen/after/plugin/dap.lua +++ b/nvim-primeagen/after/plugin/dap.lua @@ -4,6 +4,17 @@ dap.adapters.python = { command = '.venv/bin/python'; args = { '-m', 'debugpy.adapter' }; } +dap.configurations.python = { + { + type = 'python'; + request = 'launch'; + name = "Launch file"; + program = "${file}"; + pythonPath = function() + return '.venv/bin/python' + end; + }, +} vim.keymap.set('n', '<F5>', function() require('dap').continue() end) vim.keymap.set('n', '<F10>', function() require('dap').step_over() end) diff --git a/nvim-primeagen/after/plugin/neotest-python.lua b/nvim-primeagen/after/plugin/neotest-python.lua index 6637042..6505eec 100644 --- a/nvim-primeagen/after/plugin/neotest-python.lua +++ b/nvim-primeagen/after/plugin/neotest-python.lua @@ -1,7 +1,7 @@ require("neotest").setup({ quickfix = { - open = false, - enabled = false, + open = true, + enabled = true, }, status = { enabled = true, @@ -87,6 +87,10 @@ vim.keymap.set("n", "tf", function() require("neotest").run.run(vim.fn.expand("%")) end) +vim.keymap.set("n", "td", function() + require("neotest").run.run({strategy = "dap"}) +end) + vim.keymap.set("n", "tr", function() local neotest = require("neotest") neotest.run.run() diff --git a/nvim-primeagen/lua/lemon/packer.lua b/nvim-primeagen/lua/lemon/packer.lua index ad6b084..83da426 100644 --- a/nvim-primeagen/lua/lemon/packer.lua +++ b/nvim-primeagen/lua/lemon/packer.lua @@ -75,6 +75,7 @@ return require('packer').startup(function(use) {'hrsh7th/nvim-cmp'}, {'hrsh7th/cmp-buffer'}, {'hrsh7th/cmp-path'}, + {'hrsh7th/cmp-cmdline'}, {'saadparwaiz1/cmp_luasnip'}, {'hrsh7th/cmp-nvim-lsp'}, {'hrsh7th/cmp-nvim-lua'}, @@ -90,6 +91,7 @@ return require('packer').startup(function(use) use("eandrju/cellular-automaton.nvim") -- use("laytan/cloak.nvim") use("jlanzarotta/bufexplorer") + use("mhinz/vim-signify") use { "nvim-neotest/neotest", requires = { |