Backup
This commit is contained in:
parent
811660e30a
commit
01e4fe7095
22 changed files with 102 additions and 122 deletions
dotfiles/neovim/lua/my/plugins
|
@ -1,20 +0,0 @@
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
local opts = function(desc)
|
||||
return { desc = desc, silent = true }
|
||||
end
|
||||
|
||||
local modes = { "n", "v", "o" }
|
||||
|
||||
vim.keymap.set(modes, "qf", "<Plug>(easymotion-bd-f)", opts("Hop to char"))
|
||||
vim.keymap.set(modes, "qj", "<Plug>(easymotion-overwin-f2)", opts("Hop to char pair"))
|
||||
vim.keymap.set(modes, "qw", "<Plug>(easymotion-bd-w)", opts("Hop to word"))
|
||||
vim.keymap.set(modes, "qL", "<Plug>(easymotion-bd-L)", opts("Hop to line (?)"))
|
||||
|
||||
local status, wk = pcall(require, "which-key")
|
||||
|
||||
if status then wk.register({ q = { name = "Easymotion" } }, { mode = "o" }) end
|
||||
end
|
||||
|
||||
return M
|
|
@ -6,7 +6,6 @@ function M.setup()
|
|||
require('fidget').setup()
|
||||
require('dressing').setup()
|
||||
|
||||
require("my.plugins.easymotion").setup()
|
||||
require("my.plugins.autopairs").setup()
|
||||
require("my.plugins.telescope").setup()
|
||||
require("my.plugins.surround").setup()
|
||||
|
@ -49,6 +48,7 @@ function M.setup()
|
|||
require("my.plugins.paperplanes").setup()
|
||||
end
|
||||
|
||||
require("my.plugins.leap").setup()
|
||||
require("my.plugins.hydra").setup()
|
||||
require("my.plugins.clipboard-image").setup()
|
||||
require("my.plugins.mind").setup()
|
||||
|
|
10
dotfiles/neovim/lua/my/plugins/leap.lua
Normal file
10
dotfiles/neovim/lua/my/plugins/leap.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
require("leap").add_default_mappings()
|
||||
end
|
||||
|
||||
-- (something)
|
||||
-- something
|
||||
|
||||
return M
|
|
@ -1,9 +1,18 @@
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
vim.g.neovide_floating_blur_amount_x = 2.0
|
||||
vim.g.neovide_floating_blur_amount_y = 2.0
|
||||
-- vim.g.neovide_transparency = 0.8
|
||||
-- vim.g.neovide_floating_blur_amount_x = 3.0
|
||||
-- vim.g.neovide_floating_blur_amount_y = 3.0
|
||||
-- vim.g.neovide_transparency = 1.0
|
||||
-- vim.g.pumblend = 30
|
||||
|
||||
-- vim.api.nvim_create_autocmd("WinEnter", {
|
||||
-- group = vim.api.nvim_create_augroup("Setup transparency", {}),
|
||||
-- pattern = "*",
|
||||
-- callback = function()
|
||||
-- vim.wo.winblend = 30
|
||||
-- end
|
||||
-- })
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -19,17 +19,13 @@ local keybinds = {
|
|||
{ "<Leader>fp", find_files_by_extension("purs"), "Find purescript files" },
|
||||
{ "<Leader>d", "diagnostics", "Diagnostics" },
|
||||
{ "<C-F>", "live_grep", "Search in project" },
|
||||
{ "<Leader>t", "builtin", "Show builtin pickers" },
|
||||
{ "<Leader>t", "builtin", "Show builtin pickers" }
|
||||
}
|
||||
|
||||
local chords = {
|
||||
{ "jp", "file_browser" }
|
||||
}
|
||||
local chords = { { "jp", "file_browser" } }
|
||||
|
||||
local function mkAction(action)
|
||||
if not string.find(action, "theme=") then
|
||||
action = with_theme(action, defaultTheme)
|
||||
end
|
||||
if not string.find(action, "theme=") then action = with_theme(action, defaultTheme) end
|
||||
|
||||
return ":Telescope " .. action .. "<cr>"
|
||||
end
|
||||
|
@ -39,9 +35,7 @@ local function setupKeybinds()
|
|||
vim.keymap.set("n", mapping[1], mkAction(mapping[2]), { desc = mapping[3] })
|
||||
end
|
||||
|
||||
for _, mapping in pairs(chords) do
|
||||
arpeggio.chord("n", mapping[1], mkAction(mapping[2]))
|
||||
end
|
||||
for _, mapping in pairs(chords) do arpeggio.chord("n", mapping[1], mkAction(mapping[2])) end
|
||||
end
|
||||
|
||||
function M.setup()
|
||||
|
@ -50,11 +44,7 @@ function M.setup()
|
|||
local settings = {
|
||||
defaults = { mappings = { i = { ["<C-h>"] = "which_key" } } },
|
||||
pickers = { find_files = { hidden = true } },
|
||||
extensions = {
|
||||
file_browser = {
|
||||
path = "%:p:h"
|
||||
}
|
||||
}
|
||||
extensions = { file_browser = { path = "%:p:h" } }
|
||||
}
|
||||
|
||||
require("telescope").setup(settings)
|
||||
|
|
|
@ -4,7 +4,8 @@ local M = {}
|
|||
|
||||
function M.setup()
|
||||
wk.setup({
|
||||
triggers = { "<leader>", "d", "y", "q", "z", "g", "c" },
|
||||
-- triggers = { "<leader>", "d", "y", "q", "z", "g", "c" },
|
||||
triggers = {},
|
||||
show_help = false,
|
||||
show_keys = false
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue