diff --git a/lua/config/keymaping.lua b/lua/config/keymaping.lua index e53e2b2..0240f4a 100644 --- a/lua/config/keymaping.lua +++ b/lua/config/keymaping.lua @@ -28,9 +28,18 @@ map({ "n", "v" }, "g", "Neotree git_status float", { desc = "op map({ "n", "v" }, "", "BufferClose", { desc = "close window" }) -- telescope -map("n", "f", "Telescope live_grep", { desc = "telescope live grep" }) -map("n", "r", "Telescope lsp_references", { desc = "telescope lsp references" }) -map("n", "d", "Telescope lsp_definitions", { desc = "telescope lsp definitions" }) +-- map("n", "f", "Telescope live_grep", { desc = "telescope live grep" }) +-- map("n", "r", "Telescope lsp_references", { desc = "telescope lsp references" }) +-- map("n", "d", "Telescope lsp_definitions", { desc = "telescope lsp definitions" }) + +local snacks = require("snacks") + +-- picker +map("n", "g", snacks.picker.grep, { desc = "telescope live grep" }) +map("n", "f", snacks.picker.files, { desc = "telescope lsp references" }) +map("n", "r", snacks.picker.lsp_references, { desc = "telescope lsp references" }) +map("n", "d", snacks.picker.lsp_definitions, { desc = "telescope lsp definitions" }) +-- map("n", "gg", snacks.picker.git_log, { desc = "telescope live grep" }) -- barbar map("n", "", "BufferNext", { desc = "Next tab" }) @@ -39,7 +48,7 @@ map("n", "", "BufferPrevious", { desc = "Previous tab" }) -- dap local dap = require("dap") -map("n", "bb", dap.toggle_breakpoint, { desc = "Toggle breakpoint" }) +map("n", "b", dap.toggle_breakpoint, { desc = "Toggle breakpoint" }) map("n", "", dap.step_over, { desc = "Step over" }) map("n", "", dap.step_into, { desc = "Step into" }) map("n", "", dap.step_out, { desc = "Step out" }) diff --git a/lua/config/menu.lua b/lua/config/menu.lua index 3aa4f21..19d9a06 100644 --- a/lua/config/menu.lua +++ b/lua/config/menu.lua @@ -19,6 +19,11 @@ return { cmd = dap.continue, }, + { + name = " Run debug (Last)", + cmd = dap.run_last, + }, + { name = "󰫧 Eval", cmd = dapui.eval, -- require('dap.ui.widgets').hover() diff --git a/lua/plugins/blankline.lua b/lua/plugins/blankline.lua deleted file mode 100644 index cff08cb..0000000 --- a/lua/plugins/blankline.lua +++ /dev/null @@ -1,21 +0,0 @@ -return { - "lukas-reineke/indent-blankline.nvim", - main = "ibl", - ---@module "ibl" - ---@type ibl.config - opts = {}, - config = function() - require("ibl").setup({ - exclude = { - filetypes = { - "lspinfo", - "packer", - "checkhealth", - "help", - "man", - "dashboard", - }, - }, - }) - end, -} diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua new file mode 100644 index 0000000..69d8266 --- /dev/null +++ b/lua/plugins/snacks.lua @@ -0,0 +1,18 @@ +return { + "folke/snacks.nvim", + ---@type snacks.Config + opts = { + picker = { + -- your picker configuration comes here + -- or leave it empty to use the default settings + -- refer to the configuration section below + }, + indent = { + --- + }, + scroll = { + --- + }, + toggle = {}, + }, +}