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" }, + }, +}