Revert "feat(nvim): add svart plugin"

This reverts commit d61de62c5f.
This commit is contained in:
Stefan Imhoff
2022-11-13 09:45:39 +01:00
parent ad21ff00bc
commit 617b859a85
2 changed files with 0 additions and 36 deletions

View File

@@ -1,35 +0,0 @@
-- https://gitlab.com/madyanov/svart.nvim
local status, svart = pcall(require, "svart")
if not status then
return
end
local keymap = vim.keymap.set
local opts = { noremap = true, silent = true }
svart.configure({
key_cancel = "<Esc>", -- cancel search
key_delete_char = "<BS>", -- delete query char
key_delete_word = "<C-W>", -- delete query word
key_delete_query = "<C-U>", -- delete whole query
key_best_match = "<CR>", -- jump to the best match
key_next_match = "<C-N>", -- select next match
key_prev_match = "<C-P>", -- select prev match
label_atoms = "jfkdlsahgnuvrbytmiceoxwpqz", -- allowed label chars
label_location = "end", -- possible values: "start" of the match, "end" of the match
label_max_len = 2, -- max label length
label_min_query_len = 1, -- min query length required to show labels
label_hide_irrelevant = true, -- hide irrelevant labels after start typing label to go to
search_update_register = true, -- update search (/) register with last used query after accepting match
search_wrap_around = true, -- wrap around when navigating to next/prev match
search_multi_window = true, -- search in multiple windows
ui_dim_content = true, -- dim buffer content during search
})
-- Keymaps
keymap({ "n", "x", "o" }, "s", "<Cmd>Svart<CR>", opts) -- begin exact search
keymap({ "n", "x", "o" }, "S", "<Cmd>SvartRegex<CR>", opts) -- begin regex search
keymap({ "n", "x", "o" }, "gs", "<Cmd>SvartRepeat<CR>", opts)

View File

@@ -141,7 +141,6 @@ return packer.startup(function(use)
use("ray-x/guihua.lua") -- Lua GUI lib
use("ray-x/sad.nvim") -- Find & Replace
use("gorbit99/codewindow.nvim") -- Minimap
use("https://gitlab.com/madyanov/svart.nvim")
-- Editing Files
use("windwp/nvim-autopairs") -- Autopairs, integrates with both cmp and treesitter