chore: remove unused nvim plugins
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
local dap = require "dap"
|
|
||||||
|
|
||||||
dap.adapters["pwa-node"] = {
|
|
||||||
type = "server",
|
|
||||||
host = "127.0.0.1",
|
|
||||||
port = 8123,
|
|
||||||
executable = {
|
|
||||||
command = "js-debug-adapter",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, language in ipairs { "javascript", "typescript" } do
|
|
||||||
dap.configurations[language] = {
|
|
||||||
{
|
|
||||||
type = "pwa-node",
|
|
||||||
request = "launch",
|
|
||||||
name = "Launch file",
|
|
||||||
program = "${file}",
|
|
||||||
cwd = "${workspaceFolder}",
|
|
||||||
runtimeExecutable = "node",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
@@ -25,36 +25,6 @@ M["rust-tools"] = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
M.dap = {
|
|
||||||
n = {
|
|
||||||
["<leader>dt"] = {
|
|
||||||
"<cmd> DapToggleBreakpoint <CR>",
|
|
||||||
"Toggle breakpoint",
|
|
||||||
},
|
|
||||||
["<leader>dr"] = {
|
|
||||||
"<cmd> DapContinue <CR>",
|
|
||||||
"Continue Debugging",
|
|
||||||
},
|
|
||||||
["<leader>dc"] = {
|
|
||||||
"<cmd> DapTerminate <CR>",
|
|
||||||
"Close Debugger",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
M.dap_python = {
|
|
||||||
plugin = true,
|
|
||||||
|
|
||||||
n = {
|
|
||||||
["<leader>dpr"] = {
|
|
||||||
function()
|
|
||||||
require("dap-python").test_method()
|
|
||||||
end,
|
|
||||||
"Debug test method",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
M.lazygit = {
|
M.lazygit = {
|
||||||
n = {
|
n = {
|
||||||
["<leader>gg"] = {
|
["<leader>gg"] = {
|
||||||
@@ -64,19 +34,6 @@ M.lazygit = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
M.dadbodui = {
|
|
||||||
n = {
|
|
||||||
["<leader>db"] = {
|
|
||||||
"<cmd> DBUIToggle <CR>",
|
|
||||||
"Toggle DB UI",
|
|
||||||
},
|
|
||||||
["<leader>dn"] = {
|
|
||||||
"<cmd> DBUIAddConnection <CR>",
|
|
||||||
"Add new database connection",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
M.noice = {
|
M.noice = {
|
||||||
n = {
|
n = {
|
||||||
["<leader>nl"] = {
|
["<leader>nl"] = {
|
||||||
|
|||||||
@@ -1,44 +1,6 @@
|
|||||||
local cmp = require "cmp"
|
local cmp = require "cmp"
|
||||||
|
|
||||||
local plugins = {
|
local plugins = {
|
||||||
{ "nvim-neotest/nvim-nio" },
|
|
||||||
{
|
|
||||||
"mfussenegger/nvim-dap",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"mfussenegger/nvim-dap-python",
|
|
||||||
ft = "python",
|
|
||||||
dependencies = {
|
|
||||||
"mfussenegger/nvim-dap",
|
|
||||||
"rcarriga/nvim-dap-ui",
|
|
||||||
"nvim-neotest/nvim-nio",
|
|
||||||
},
|
|
||||||
config = function(_, _)
|
|
||||||
local path = "~/.local/share/nvim/mason/packages/debugpy/venv/bin/python"
|
|
||||||
require("dap-python").setup(path)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rcarriga/nvim-dap-ui",
|
|
||||||
dependencies = {
|
|
||||||
"mfussenegger/nvim-dap",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
local dap = require "dap"
|
|
||||||
local dapui = require "dapui"
|
|
||||||
|
|
||||||
dapui.setup()
|
|
||||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
|
||||||
dapui.open()
|
|
||||||
end
|
|
||||||
dap.listeners.before.event_terminated["dapui_config"] = function()
|
|
||||||
dapui.close()
|
|
||||||
end
|
|
||||||
dap.listeners.before.event_exited["dapui_config"] = function()
|
|
||||||
dapui.close()
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{ "folke/neodev.nvim", opts = {} },
|
{ "folke/neodev.nvim", opts = {} },
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
@@ -89,28 +51,6 @@ local plugins = {
|
|||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"kristijanhusak/vim-dadbod-ui",
|
|
||||||
dependencies = {
|
|
||||||
{
|
|
||||||
"tpope/vim-dadbod",
|
|
||||||
lazy = false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kristijanhusak/vim-dadbod-completion",
|
|
||||||
ft = { "sql", "mysql", "plsql" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
cmd = {
|
|
||||||
"DBUI",
|
|
||||||
"DBUIToggle",
|
|
||||||
"DBUIAddConnection",
|
|
||||||
"DBUIFindBuffer",
|
|
||||||
},
|
|
||||||
init = function()
|
|
||||||
vim.g.db_ui_use_nerd_fonts = 1
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
opts = {},
|
opts = {},
|
||||||
@@ -130,7 +70,6 @@ local plugins = {
|
|||||||
"mypy",
|
"mypy",
|
||||||
"ruff",
|
"ruff",
|
||||||
"black",
|
"black",
|
||||||
"debugpy",
|
|
||||||
"lua-language-server",
|
"lua-language-server",
|
||||||
"nil",
|
"nil",
|
||||||
"phpactor",
|
"phpactor",
|
||||||
@@ -158,20 +97,10 @@ local plugins = {
|
|||||||
{
|
{
|
||||||
"simrat39/rust-tools.nvim",
|
"simrat39/rust-tools.nvim",
|
||||||
ft = "rust",
|
ft = "rust",
|
||||||
dependencies = { "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim", "mfussenegger/nvim-dap" },
|
dependencies = { "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim" },
|
||||||
opts = function()
|
opts = function()
|
||||||
local lspconfig = require "plugins.configs.lspconfig"
|
local lspconfig = require "plugins.configs.lspconfig"
|
||||||
-- local extension_path = vim.env.HOME .. "/.local/share/nvim/mason/packages/codelldb/extension/"
|
|
||||||
-- local codelldb_path = extension_path .. 'adapter/codelldb'
|
|
||||||
-- local liblldb_path = extension_path .. 'lldb/lib/liblldb.so'
|
|
||||||
return {
|
return {
|
||||||
dap = {
|
|
||||||
adapter = {
|
|
||||||
type = "executable",
|
|
||||||
command = "lldb",
|
|
||||||
name = "rt_lldb",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
server = {
|
server = {
|
||||||
tools = {
|
tools = {
|
||||||
hover_actions = {
|
hover_actions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user