diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua index e9cf36d4..31ec0d0a 100644 --- a/lua/custom/plugins/copilot.lua +++ b/lua/custom/plugins/copilot.lua @@ -1,12 +1,5 @@ return { 'github/copilot.vim', - config = function() - vim.keymap.set('i', '', 'copilot#Accept("\\")', { - expr = true, - replace_keycodes = false, - }) - vim.g.copilot_no_tab_map = true - end, opts = { suggestion = { enabled = false }, panel = { enabled = false }, @@ -17,4 +10,12 @@ return { help = true, }, }, + build = ':Copilot auth', + config = function() + vim.keymap.set('i', '', 'copilot#Accept("\\")', { + expr = true, + replace_keycodes = false, + }) + vim.g.copilot_no_tab_map = true + end, } diff --git a/lua/custom/plugins/custom-debugging.lua b/lua/custom/plugins/custom-debugging.lua new file mode 100644 index 00000000..0021c807 --- /dev/null +++ b/lua/custom/plugins/custom-debugging.lua @@ -0,0 +1,3 @@ +return { + 'theHamsta/nvim-dap-virtual-text', +} diff --git a/lua/custom/plugins/harpoon.lua b/lua/custom/plugins/harpoon.lua new file mode 100644 index 00000000..a1d07acf --- /dev/null +++ b/lua/custom/plugins/harpoon.lua @@ -0,0 +1,37 @@ +return { + 'ThePrimeagen/harpoon', + config = function() + require('harpoon').setup() + vim.keymap.set('n', 'ha', require('harpoon.mark').add_file, { desc = '[H]arpoon [A]dd file' }) + vim.keymap.set('n', 'ht', require('harpoon.ui').toggle_quick_menu, { desc = '[H]arpoon [T]oggle quick menu' }) + vim.keymap.set('n', 'hn', require('harpoon.ui').nav_next, { desc = '[H]arpoon nav [N]ext' }) + vim.keymap.set('n', 'hp', require('harpoon.ui').nav_prev, { desc = '[H]arpoon nav [P]revious' }) + vim.keymap.set('n', 'h1', function() + require('harpoon.ui').nav_file(1) + end, { desc = '[H]arpoon goto file [1]' }) + vim.keymap.set('n', 'h2', function() + require('harpoon.ui').nav_file(2) + end, { desc = '[H]arpoon goto file [2]' }) + vim.keymap.set('n', 'h3', function() + require('harpoon.ui').nav_file(3) + end, { desc = '[H]arpoon goto file [3]' }) + vim.keymap.set('n', 'h4', function() + require('harpoon.ui').nav_file(4) + end, { desc = '[H]arpoon goto file [4]' }) + vim.keymap.set('n', 'hm1', function() + require('harpoon.tmux').gotoTerminal(1) + end, { desc = '[H]arpoon goto {T]mux window [1]' }) + vim.keymap.set('n', 'hm2', function() + require('harpoon.tmux').gotoTerminal(2) + end, { desc = '[H]arpoon goto {T]mux window [2]' }) + vim.keymap.set('n', 'hm3', function() + require('harpoon.tmux').gotoTerminal(3) + end, { desc = '[H]arpoon goto {T]mux window [3]' }) + vim.keymap.set('n', 'hm4', function() + require('harpoon.tmux').gotoTerminal(4) + end, { desc = '[H]arpoon goto {T]mux window [4]' }) + end, + dependencies = { + 'nvim-lua/plenary.nvim', + }, +} diff --git a/lua/custom/plugins/markdown-toggle.lua b/lua/custom/plugins/markdown-toggle.lua new file mode 100644 index 00000000..a57bde17 --- /dev/null +++ b/lua/custom/plugins/markdown-toggle.lua @@ -0,0 +1,6 @@ +return { + 'roodolv/markdown-toggle.nvim', + config = function() + require('markdown-toggle').setup() + end, +} diff --git a/lua/custom/plugins/nvim-markdown.lua b/lua/custom/plugins/nvim-markdown.lua new file mode 100644 index 00000000..5a0a5ebf --- /dev/null +++ b/lua/custom/plugins/nvim-markdown.lua @@ -0,0 +1,6 @@ +return { + 'ixru/nvim-markdown', + config = function() + vim.g.markdown_folding = 1 + end, +} diff --git a/lua/custom/plugins/python-debugging.lua b/lua/custom/plugins/python-debugging.lua new file mode 100644 index 00000000..f143e8d2 --- /dev/null +++ b/lua/custom/plugins/python-debugging.lua @@ -0,0 +1,28 @@ +-- python-debugging.lua: Debugging Python code with DAP +-- + +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', + }, + }, + config = function() + local path = require('mason-registry').get_package('debugpy'):get_install_path() + require('dap-python').setup(os.getenv 'PYENV_ROOT' .. '/versions/3.11.9/bin/python') + end, +} diff --git a/lua/custom/plugins/smartyank.lua b/lua/custom/plugins/smartyank.lua new file mode 100644 index 00000000..c942a259 --- /dev/null +++ b/lua/custom/plugins/smartyank.lua @@ -0,0 +1,3 @@ +return { + 'ibhagwan/smartyank.nvim', +} diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 4fd23e18..7a7875b0 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -1,4 +1,4 @@ --- debug.lua +-- debug.la -- -- Shows how to use the DAP plugin to debug your code. -- @@ -25,6 +25,9 @@ return { -- Add your own debuggers here 'leoluz/nvim-dap-go', + + -- Debugpy for Python debugging + 'mfussenegger/nvim-dap-python', }, keys = function(_, keys) local dap = require 'dap' @@ -51,6 +54,9 @@ return { config = function() local dap = require 'dap' local dapui = require 'dapui' + local path = require('mason-registry').get_package('debugpy'):get_install_path() + + require('dap-python').setup(os.getenv 'PYENV_ROOT' .. '/versions/3.11.9/bin/python') require('mason-nvim-dap').setup { -- Makes a best effort to setup the various debuggers with @@ -67,6 +73,7 @@ return { ensure_installed = { -- Update this to ensure that you have the debuggers for the langs you want 'delve', + 'debugpy', 'python', 'jq', 'stylua',