summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-05-01 18:40:18 +0300
committerKyren223 <Kyren223@proton.me>2025-05-01 18:40:18 +0300
commit88bd0449ed25ca45a8eaf2619a9175169cc06cf0 (patch)
treeb2f0b29b2af9243b930b4a7725224925f5fd02f3 /.config/nvim/lua/plugins
parent522fd07b1d46438896e8e506b2b4cb25943f9173 (diff)
Removed dap as it's not used, will add it if I start needing a debugger
Diffstat (limited to '.config/nvim/lua/plugins')
-rw-r--r--.config/nvim/lua/plugins/nvim-dap-ui.lua26
-rw-r--r--.config/nvim/lua/plugins/nvim-dap.lua58
2 files changed, 0 insertions, 84 deletions
diff --git a/.config/nvim/lua/plugins/nvim-dap-ui.lua b/.config/nvim/lua/plugins/nvim-dap-ui.lua
deleted file mode 100644
index cddad45..0000000
--- a/.config/nvim/lua/plugins/nvim-dap-ui.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-return {
- 'rcarriga/nvim-dap-ui',
- dependencies = { 'mfussenegger/nvim-dap', 'nvim-neotest/nvim-nio' },
- event = 'VeryLazy',
- config = function()
- local dap = require('dap')
- local dapui = require('dapui')
- dapui.setup()
- dap.listeners.before.attach.dapui_config = function()
- dapui.open()
- vim.cmd.Hardtime('disable')
- end
- dap.listeners.after.event_initialized['dapui_config'] = function()
- dapui.open()
- vim.cmd.Hardtime('disable')
- end
- dap.listeners.before.event_terminated['dapui_config'] = function()
- dapui.close()
- vim.cmd.Hardtime('enable')
- end
- dap.listeners.before.event_exited['dapui_config'] = function()
- dapui.close()
- vim.cmd.Hardtime('enable')
- end
- end,
-}
diff --git a/.config/nvim/lua/plugins/nvim-dap.lua b/.config/nvim/lua/plugins/nvim-dap.lua
deleted file mode 100644
index dd4bbee..0000000
--- a/.config/nvim/lua/plugins/nvim-dap.lua
+++ /dev/null
@@ -1,58 +0,0 @@
-return {
- 'mfussenegger/nvim-dap',
- dependencies = { 'williamboman/mason.nvim' },
- -- NOTE:nvim-dap has no setup function
- -- if there is just opts, lazy will attempt to call setup which causes an error
- -- Having an empty config function makes lazy not call setup which fixes the issue
- config = function() end,
- opts = function()
- -- Load dap keymaps
- require('dap-keymaps')
- local dap = require('dap')
-
- -- Setup C/C++ dap
- if not dap.adapters['codelldb'] then
- dap.adapters['codelldb'] = {
- type = 'server',
- host = 'localhost',
- port = '${port}',
- executable = {
- command = 'codelldb',
- args = {
- '--port',
- '${port}',
- },
- },
- }
- end
- for _, lang in ipairs({ 'c', 'cpp' }) do
- dap.configurations[lang] = {
- {
- type = 'codelldb',
- request = 'launch',
- name = 'Launch file',
- program = function()
- if vim.g.dap_codelldb_exe then
- return vim.fn.getcwd() .. '/' .. vim.g.dap_codelldb_exe
- end
- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
- end,
- args = function()
- if vim.g.dap_codelldb_args then
- return vim.g.dap_codelldb_args
- end
- return {}
- end,
- cwd = '${workspaceFolder}',
- },
- {
- type = 'codelldb',
- request = 'attach',
- name = 'Attach to process',
- pid = require('dap.utils').pick_process,
- cwd = '${workspaceFolder}',
- },
- }
- end
- end,
-}