This commit is contained in:
sankalp committed 2024-01-22 22:49:16 +05:45
1 parent 1fd1d644a7
commit cc4854f054
8 files changed
+1458 -46

No files matched your search

@@ -22,6 +22,14 @@ return {
{ "<S-F2>", function() require("dap").set_breakpoint(vim.fn.input('Breakpoint condition: ')) end, desc = "Breakpoint Condition" },
},
},
{
"nvim-neotest/neotest",
optional = true,
-- stylua: ignore
keys = {
{ "<leader>tL", function() require("neotest").run.run_last({ strategy = "dap" }) end, desc = "Debug Last Test" },
},
},
{
"folke/which-key.nvim",
opts = {
@@ -141,6 +141,10 @@ return {
["neotest-vitest"] = {},
},
},
-- stylua: ignore
keys = {
{ "<leader>tw", function() require('neotest').run.run({ jestCommand = 'jest --watch ' }) end, desc = "Run Watch" },
},
},
{
"luckasRanarison/nvim-devdocs",
@@ -1,14 +1,5 @@
return {
{ import = "lazyvim.plugins.extras.test.core" },
{
"nvim-neotest/neotest",
-- stylua: ignore
keys = {
{ "<leader>tl", function() require("neotest").run.run_last() end, desc = "Run Last Test" },
{ "<leader>tL", function() require("neotest").run.run_last({ strategy = "dap" }) end, desc = "Debug Last Test" },
{ "<leader>tw", "<cmd>lua require('neotest').run.run({ jestCommand = 'jest --watch ' })<cr>", desc = "Run Watch" },
},
},
{
"folke/which-key.nvim",
opts = {
+13 -2
View File
@@ -57,8 +57,6 @@ vim.api.nvim_create_autocmd("User", {
map("n", "<leader><space>", "<cmd>Find<cr>")
-- find in files
map("n", "<leader>/", vscode_action("workbench.action.findInFiles"))
-- open symbol
map("n", "<leader>ss", vscode_action("workbench.action.gotoSymbol"))
-- view problems
map("n", "<leader>xx", vscode_action("workbench.actions.view.problems"))
-- open file explorer
@@ -138,6 +136,8 @@ vim.api.nvim_create_autocmd("User", {
-- diagnostics
map("n", "]d", vscode_action("editor.action.marker.next"))
map("n", "[d", vscode_action("editor.action.marker.prev"))
-- whichkey
map("n", "<leader>", vscode_action("whichkey.show"))
end,
})
@@ -159,4 +159,15 @@ return {
},
},
},
{
"folke/flash.nvim",
init = function()
local palette = require("catppuccin.palettes").get_palette("macchiato")
local bg = palette.none
vim.api.nvim_set_hl(0, "FlashBackdrop", { fg = bg })
vim.api.nvim_set_hl(0, "FlashLabel", { fg = palette.green, bg = bg, bold = true })
vim.api.nvim_set_hl(0, "FlashMatch", { fg = palette.lavender, bg = bg })
vim.api.nvim_set_hl(0, "FlashCurrent", { fg = palette.peach, bg = bg })
end,
},
}