diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index 410a076..0406eff 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -716,6 +716,58 @@ local plugins = { "hrsh7th/nvim-cmp", enabled = not vim.g.started_by_firenvim, }, + { + "ziontee113/icon-picker.nvim", + keys = { + { "", "IconPickerNormal", desc = "pick icon" }, + { "y", "IconPickerYank", desc = "yank icon" }, + }, + cmd = { "IconPickerInsert", "IconPickerYank", "IconPickerNormal" }, + config = function() + require("icon-picker").setup { disable_legacy_commands = true } + end, + }, + { + "mfussenegger/nvim-dap", + init = function() + require("core.utils").load_mappings "debug" + end, + config = function() + local dap = require "dap" + dap.adapters.gdb = { + type = "executable", + command = "gdb", + args = { "-i", "dap" }, -- NOTE: gdb sometimes has no built in dap interface, LMDE6 has this i + -- think. Don't bother with compiling from source + } + dap.adapters.codelldb = { + type = "server", + port = "${port}", + executable = { + -- CHANGE THIS to your path! + command = "/home/plex/.local/share/codelldb/extension/adapter/codelldb", + args = { "--port", "${port}" }, + -- On windows you may have to uncomment this: + -- detached = false, + }, + } + + dap.configurations.cpp = { + { + name = "Launch file", + type = "codelldb", + request = "launch", + program = function() + return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file") + end, + cwd = "${workspaceFolder}", + stopOnEntry = false, + }, + } + dap.configurations.rust = dap.configurations.cpp + dap.configurations.c = dap.configurations.cpp + end, + }, } return plugins