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,
},
}
+4 -15
View File
@@ -12,18 +12,15 @@ return {
keys[#keys + 1] = { "<leader>cls", "<cmd>LspStart<cr>", desc = "Start Lsp" }
keys[#keys + 1] = { "<leader>clS", "<cmd>LspStop<cr>", desc = "Stop Lsp" }
-- stylua: ignore
keys[#keys + 1] = { "<leader>cll", "<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<cr>", desc = "List Workspace" }
-- stylua: ignore
keys[#keys + 1] = { "<leader>clr", "<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>", desc = "Remove workspace" }
keys[#keys + 1] = { "<leader>cla", "<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>", desc = "Add workspace" }
-- stylua: ignore start
keys[#keys + 1] = { "<leader>clr", function() vim.lsp.buf.remove_workspace_folder() end, desc = "Remove workspace" }
keys[#keys + 1] = { "<leader>cla", function() vim.lsp.buf.add_workspace_folder() end, desc = "Add workspace" }
-- stylua: ignore end
keys[#keys + 1] = { "<leader>clh", vim.lsp.codelens.run, desc = "Run Code Lens" }
keys[#keys + 1] = { "<leader>cld", vim.lsp.codelens.refresh, desc = "Refresh Code Lens" }
end,
opts = {
-- options for vim.diagnostic.config()
diagnostics = {
virtual_text = {
float = {
@@ -39,14 +36,6 @@ return {
},
},
},
signs = {
text = {
[vim.diagnostic.severity.ERROR] = require("lazyvim.config").icons.diagnostics.Error,
[vim.diagnostic.severity.WARN] = require("lazyvim.config").icons.diagnostics.Warn,
[vim.diagnostic.severity.HINT] = require("lazyvim.config").icons.diagnostics.Hint,
[vim.diagnostic.severity.INFO] = require("lazyvim.config").icons.diagnostics.Info,
},
},
},
inlay_hints = {
enabled = nvim_0_10,