Nix hm #1
5 changed files with 63 additions and 131 deletions
|
|
@ -1,71 +0,0 @@
|
|||
return {
|
||||
"ibhagwan/fzf-lua",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
opts = {
|
||||
"telescope",
|
||||
winopts = {
|
||||
preview = {
|
||||
default = "bat"
|
||||
}
|
||||
},
|
||||
lsp = {
|
||||
workspace_symbols = {
|
||||
symbol_kinds = { "Variable", "Function", "Method", "Class", "Struct", "Interface" },
|
||||
},
|
||||
},
|
||||
previewers = {
|
||||
builtin = {
|
||||
-- turn off syntax highlighting for files with more than 100KB
|
||||
-- this avoid hanging when previewing large files (due to treesitter parsing on minified files)
|
||||
syntax_limit_b = 1024 * 100, -- 100KB
|
||||
}
|
||||
}
|
||||
},
|
||||
config = function()
|
||||
local fzf = require("fzf-lua")
|
||||
local pickers = {
|
||||
{
|
||||
mapping = "o",
|
||||
action = function()
|
||||
fzf.files({
|
||||
git_icons = false,
|
||||
})
|
||||
end
|
||||
},
|
||||
{
|
||||
mapping = "a",
|
||||
action = function()
|
||||
fzf.live_grep_native({
|
||||
git_icons = false,
|
||||
rg_opts = "--hidden --column --line-number --no-heading --color=always --smart-case",
|
||||
fzf_opts = {
|
||||
['--exact'] = false, -- Disable exact matching
|
||||
},
|
||||
})
|
||||
end
|
||||
},
|
||||
{
|
||||
mapping = "g",
|
||||
action = function()
|
||||
fzf.git_bcommits({})
|
||||
end
|
||||
},
|
||||
{
|
||||
mapping = "s",
|
||||
action = function()
|
||||
fzf.lsp_live_workspace_symbols({})
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
local keymaps = {}
|
||||
keymaps.n = {}
|
||||
for _, picker in ipairs(pickers) do
|
||||
keymaps.n["<leader>t" .. picker.mapping] = {
|
||||
cmd = picker.action
|
||||
}
|
||||
end
|
||||
|
||||
require("utils").add_keymaps(keymaps)
|
||||
end
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
return {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
main = "ibl",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
local ibl = require("ibl")
|
||||
ibl.setup({
|
||||
debounce = 100,
|
||||
indent = {
|
||||
char = "▏",
|
||||
},
|
||||
scope = {
|
||||
enabled = true,
|
||||
char = "▏",
|
||||
show_start = false,
|
||||
show_end = false,
|
||||
highlight = { "IblScope" },
|
||||
},
|
||||
})
|
||||
|
||||
local colors = require("ayu.colors")
|
||||
colors.generate(true)
|
||||
local highlights = {
|
||||
{ "IblScope", { fg = colors.keyword } },
|
||||
{ "@ibl.scope.char.1", { fg = colors.keyword } },
|
||||
}
|
||||
|
||||
for _, hl in ipairs(highlights) do
|
||||
vim.api.nvim_set_hl(0, hl[1], hl[2])
|
||||
end
|
||||
end
|
||||
}
|
||||
|
|
@ -4,15 +4,6 @@ return {
|
|||
lazy = true,
|
||||
dependencies = {
|
||||
{ "MunifTanjim/nui.nvim", lazy = true },
|
||||
{
|
||||
"rcarriga/nvim-notify",
|
||||
opts = {
|
||||
background_colour = "#24273a",
|
||||
fps = 1,
|
||||
render = "compact",
|
||||
stages = "static"
|
||||
}
|
||||
}
|
||||
},
|
||||
opts = {
|
||||
lsp = {
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
return {
|
||||
"sphamba/smear-cursor.nvim",
|
||||
opts = {
|
||||
smear_between_buffers = true,
|
||||
|
||||
min_horizontal_distance_smear = 3,
|
||||
min_vertical_distance_smear = 2,
|
||||
|
||||
scroll_buffer_space = true,
|
||||
smear_insert_mode = false,
|
||||
|
||||
cursor_color = "#FFCC66",
|
||||
transparent_bg_fallback_color = "#303030",
|
||||
|
||||
stiffness = 0.85,
|
||||
trailing_stiffness = 0.7,
|
||||
distance_stop_animating = 0.5,
|
||||
},
|
||||
}
|
||||
63
nvim/lua/plugs/snacks.lua
Normal file
63
nvim/lua/plugs/snacks.lua
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
return {
|
||||
"folke/snacks.nvim",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
opts = {
|
||||
gitbrowse = { enabled = true, },
|
||||
picker = { enabled = true, },
|
||||
dashboard = { enabled = true, },
|
||||
debug = { enabled = true, },
|
||||
indent = {
|
||||
enabled = true,
|
||||
animate = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
input = { enabled = true, },
|
||||
notifier = { enabled = true, },
|
||||
quickfile = { enabled = true, },
|
||||
scroll = {
|
||||
enabled = true,
|
||||
animate = {
|
||||
duration = { step = 7, total = 250 },
|
||||
easing = "outCirc",
|
||||
},
|
||||
animate_repeat = {
|
||||
delay = 100,
|
||||
duration = { step = 3, total = 50 },
|
||||
easing = "outCirc",
|
||||
},
|
||||
},
|
||||
words = {
|
||||
enabled = true,
|
||||
debounce = 100,
|
||||
},
|
||||
zen = {
|
||||
enabled = true,
|
||||
toggles = { dim = false, }
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>z", function() Snacks.zen() end, },
|
||||
|
||||
{ "<leader>to", function() Snacks.picker.smart() end, },
|
||||
{ "<leader>ta", function() Snacks.picker.grep() end, },
|
||||
{ "<leader>tg", function() Snacks.picker.git_log_file() end, },
|
||||
{ "<leader>ts", function() Snacks.picker.lsp_workspace_symbols() end, },
|
||||
{ "<leader>tn", function() Snacks.picker.notifications() end },
|
||||
},
|
||||
init = function()
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "VeryLazy",
|
||||
callback = function()
|
||||
_G.inspect = function(...)
|
||||
Snacks.debug.inspect(...)
|
||||
end
|
||||
_G.backtrace = function()
|
||||
Snacks.debug.backtrace()
|
||||
end
|
||||
vim.print = _G.inspect
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue