From 5d611968544ec4bc53db8eb37078a8d009492abd Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:22:13 -0700 Subject: [PATCH] feat: add attempt.nvim This plugin is for creating new scratch windows. --- lazy-lock.json | 1 + lua/plugins/editor.lua | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/lazy-lock.json b/lazy-lock.json index 16efa76..671a5ae 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,6 +1,7 @@ { "LuaSnip": { "branch": "master", "commit": "ce0a05ab4e2839e1c48d072c5236cce846a387bc" }, "alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" }, + "attempt.nvim": { "branch": "main", "commit": "3905db768478a2152fd927ab5a8def85bc2e34e7" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 245f1a0..2d11c4d 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -174,4 +174,20 @@ return { }, }, }, + { + "m-demare/attempt.nvim", + opts = { + ext_options = { "js", "lua" }, + }, + keys = function() + local attempt = require("attempt") + + return { + { "an", attempt.new_select, desc = "New attempt" }, + { "ar", attempt.run, desc = "Run attempt" }, + { "ad", attempt.delete_buf, desc = "Delete attempt buffer" }, + { "al", "Telescope attempt", desc = "Search attempts" }, + } + end, + }, }