From dd80ba8de6b1e5a0fd0e774b0e0e09f281883586 Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 13 Mar 2025 18:31:19 -0700 Subject: [PATCH] add flash --- init.lua | 10 ---------- lua/custom/plugins/flash.lua | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 lua/custom/plugins/flash.lua diff --git a/init.lua b/init.lua index 91dc6831..608984a6 100644 --- a/init.lua +++ b/init.lua @@ -604,16 +604,6 @@ require('lazy').setup({ end, }) end - - -- The following code creates a keymap to toggle inlay hints in your - -- code, if the language server you are using supports them - -- - -- This may be unwanted, since they displace some of your code - if client and client_supports_method(client, vim.lsp.protocol.Methods.textDocument_inlayHint, event.buf) then - map('th', function() - vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf }) - end, '[T]oggle Inlay [H]ints') - end end, }) diff --git a/lua/custom/plugins/flash.lua b/lua/custom/plugins/flash.lua new file mode 100644 index 00000000..4cdaca09 --- /dev/null +++ b/lua/custom/plugins/flash.lua @@ -0,0 +1,10 @@ +return { + 'folke/flash.nvim', + event = 'VeryLazy', + ---@type Flash.Config + opts = {}, + -- stylua: ignore + keys = { + { "", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" }, + }, +}