chore(nvim): added custom plugins
This commit is contained in:
parent
aaf791cebc
commit
2863dca316
|
@ -1,12 +1,5 @@
|
||||||
return {
|
return {
|
||||||
'github/copilot.vim',
|
'github/copilot.vim',
|
||||||
config = function()
|
|
||||||
vim.keymap.set('i', '<C-J>', 'copilot#Accept("\\<CR>")', {
|
|
||||||
expr = true,
|
|
||||||
replace_keycodes = false,
|
|
||||||
})
|
|
||||||
vim.g.copilot_no_tab_map = true
|
|
||||||
end,
|
|
||||||
opts = {
|
opts = {
|
||||||
suggestion = { enabled = false },
|
suggestion = { enabled = false },
|
||||||
panel = { enabled = false },
|
panel = { enabled = false },
|
||||||
|
@ -17,4 +10,12 @@ return {
|
||||||
help = true,
|
help = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
build = ':Copilot auth',
|
||||||
|
config = function()
|
||||||
|
vim.keymap.set('i', '<C-J>', 'copilot#Accept("\\<CR>")', {
|
||||||
|
expr = true,
|
||||||
|
replace_keycodes = false,
|
||||||
|
})
|
||||||
|
vim.g.copilot_no_tab_map = true
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
return {
|
||||||
|
'theHamsta/nvim-dap-virtual-text',
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
return {
|
||||||
|
'ThePrimeagen/harpoon',
|
||||||
|
config = function()
|
||||||
|
require('harpoon').setup()
|
||||||
|
vim.keymap.set('n', '<leader>ha', require('harpoon.mark').add_file, { desc = '[H]arpoon [A]dd file' })
|
||||||
|
vim.keymap.set('n', '<leader>ht', require('harpoon.ui').toggle_quick_menu, { desc = '[H]arpoon [T]oggle quick menu' })
|
||||||
|
vim.keymap.set('n', '<leader>hn', require('harpoon.ui').nav_next, { desc = '[H]arpoon nav [N]ext' })
|
||||||
|
vim.keymap.set('n', '<leader>hp', require('harpoon.ui').nav_prev, { desc = '[H]arpoon nav [P]revious' })
|
||||||
|
vim.keymap.set('n', '<leader>h1', function()
|
||||||
|
require('harpoon.ui').nav_file(1)
|
||||||
|
end, { desc = '[H]arpoon goto file [1]' })
|
||||||
|
vim.keymap.set('n', '<leader>h2', function()
|
||||||
|
require('harpoon.ui').nav_file(2)
|
||||||
|
end, { desc = '[H]arpoon goto file [2]' })
|
||||||
|
vim.keymap.set('n', '<leader>h3', function()
|
||||||
|
require('harpoon.ui').nav_file(3)
|
||||||
|
end, { desc = '[H]arpoon goto file [3]' })
|
||||||
|
vim.keymap.set('n', '<leader>h4', function()
|
||||||
|
require('harpoon.ui').nav_file(4)
|
||||||
|
end, { desc = '[H]arpoon goto file [4]' })
|
||||||
|
vim.keymap.set('n', '<leader>hm1', function()
|
||||||
|
require('harpoon.tmux').gotoTerminal(1)
|
||||||
|
end, { desc = '[H]arpoon goto {T]mux window [1]' })
|
||||||
|
vim.keymap.set('n', '<leader>hm2', function()
|
||||||
|
require('harpoon.tmux').gotoTerminal(2)
|
||||||
|
end, { desc = '[H]arpoon goto {T]mux window [2]' })
|
||||||
|
vim.keymap.set('n', '<leader>hm3', function()
|
||||||
|
require('harpoon.tmux').gotoTerminal(3)
|
||||||
|
end, { desc = '[H]arpoon goto {T]mux window [3]' })
|
||||||
|
vim.keymap.set('n', '<leader>hm4', function()
|
||||||
|
require('harpoon.tmux').gotoTerminal(4)
|
||||||
|
end, { desc = '[H]arpoon goto {T]mux window [4]' })
|
||||||
|
end,
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
},
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
return {
|
||||||
|
'roodolv/markdown-toggle.nvim',
|
||||||
|
config = function()
|
||||||
|
require('markdown-toggle').setup()
|
||||||
|
end,
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
return {
|
||||||
|
'ixru/nvim-markdown',
|
||||||
|
config = function()
|
||||||
|
vim.g.markdown_folding = 1
|
||||||
|
end,
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
-- python-debugging.lua: Debugging Python code with DAP
|
||||||
|
--
|
||||||
|
|
||||||
|
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',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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,
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
return {
|
||||||
|
'ibhagwan/smartyank.nvim',
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
-- debug.lua
|
-- debug.la
|
||||||
--
|
--
|
||||||
-- Shows how to use the DAP plugin to debug your code.
|
-- Shows how to use the DAP plugin to debug your code.
|
||||||
--
|
--
|
||||||
|
@ -25,6 +25,9 @@ return {
|
||||||
|
|
||||||
-- Add your own debuggers here
|
-- Add your own debuggers here
|
||||||
'leoluz/nvim-dap-go',
|
'leoluz/nvim-dap-go',
|
||||||
|
|
||||||
|
-- Debugpy for Python debugging
|
||||||
|
'mfussenegger/nvim-dap-python',
|
||||||
},
|
},
|
||||||
keys = function(_, keys)
|
keys = function(_, keys)
|
||||||
local dap = require 'dap'
|
local dap = require 'dap'
|
||||||
|
@ -51,6 +54,9 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
local dap = require 'dap'
|
local dap = require 'dap'
|
||||||
local dapui = require 'dapui'
|
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 {
|
require('mason-nvim-dap').setup {
|
||||||
-- Makes a best effort to setup the various debuggers with
|
-- Makes a best effort to setup the various debuggers with
|
||||||
|
@ -67,6 +73,7 @@ return {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
-- Update this to ensure that you have the debuggers for the langs you want
|
-- Update this to ensure that you have the debuggers for the langs you want
|
||||||
'delve',
|
'delve',
|
||||||
|
'debugpy',
|
||||||
'python',
|
'python',
|
||||||
'jq',
|
'jq',
|
||||||
'stylua',
|
'stylua',
|
||||||
|
|
Loading…
Reference in New Issue