feat(nvim): notify, gitsigns, pre-commit, lazy types
This commit is contained in:
parent
c6ff52199a
commit
576989abe8
27 changed files with 94 additions and 86 deletions
14
.luacheckrc
Normal file
14
.luacheckrc
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---@diagnostic disable: undefined-global
|
||||||
|
|
||||||
|
files["home/apps/neovim"] = {
|
||||||
|
globals = { "vim" },
|
||||||
|
std = "lua51+luajit",
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
exclude_files = {
|
||||||
|
".direnv/*",
|
||||||
|
"result/*",
|
||||||
|
},
|
||||||
|
max_line_length = false,
|
||||||
|
}
|
13
flake.nix
13
flake.nix
|
@ -162,20 +162,17 @@
|
||||||
alejandra.enable = true;
|
alejandra.enable = true;
|
||||||
commitizen.enable = true;
|
commitizen.enable = true;
|
||||||
editorconfig-checker.enable = true;
|
editorconfig-checker.enable = true;
|
||||||
nil.enable = true;
|
|
||||||
shellcheck.enable = true;
|
|
||||||
stylua.enable = true;
|
|
||||||
flake-check = {
|
flake-check = {
|
||||||
enable = false;
|
enable = true;
|
||||||
types = ["nix"];
|
types = ["nix"];
|
||||||
language = "system";
|
language = "system";
|
||||||
entry = "just check";
|
entry = "just check";
|
||||||
pass_filenames = false;
|
pass_filenames = false;
|
||||||
};
|
};
|
||||||
};
|
luacheck.enable = true;
|
||||||
settings.deadnix = {
|
nil.enable = true;
|
||||||
noLambdaPatternNames = true;
|
shellcheck.enable = true;
|
||||||
noLambdaArg = true;
|
stylua.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
4
home/apps/neovim/.luarc.json
Normal file
4
home/apps/neovim/.luarc.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"Lua.runtime.version": "Lua 5.1",
|
||||||
|
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json"
|
||||||
|
}
|
|
@ -23,7 +23,7 @@
|
||||||
"guihua.lua": { "branch": "master", "commit": "ab8b1f09603cc268770efd057115035dc6cfa83d" },
|
"guihua.lua": { "branch": "master", "commit": "ab8b1f09603cc268770efd057115035dc6cfa83d" },
|
||||||
"headlines.nvim": { "branch": "master", "commit": "ddef41b2664f0ce25fe76520d708e2dc9dfebd70" },
|
"headlines.nvim": { "branch": "master", "commit": "ddef41b2664f0ce25fe76520d708e2dc9dfebd70" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "018bd04d80c9a73d399c1061fa0c3b14a7614399" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "018bd04d80c9a73d399c1061fa0c3b14a7614399" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "652b6febf8d5c99eb8cf4a1cec63da6db62e77d2" },
|
"lazy.nvim": { "branch": "main", "commit": "aba872ec78ffe7f7367764ab0fff6f0170421fde" },
|
||||||
"lightspeed.nvim": { "branch": "main", "commit": "299eefa6a9e2d881f1194587c573dad619fdb96f" },
|
"lightspeed.nvim": { "branch": "main", "commit": "299eefa6a9e2d881f1194587c573dad619fdb96f" },
|
||||||
"lsp-status.nvim": { "branch": "master", "commit": "54f48eb5017632d81d0fd40112065f1d062d0629" },
|
"lsp-status.nvim": { "branch": "master", "commit": "54f48eb5017632d81d0fd40112065f1d062d0629" },
|
||||||
"lspkind.nvim": { "branch": "master", "commit": "57610d5ab560c073c465d6faf0c19f200cb67e6e" },
|
"lspkind.nvim": { "branch": "master", "commit": "57610d5ab560c073c465d6faf0c19f200cb67e6e" },
|
||||||
|
@ -37,14 +37,15 @@
|
||||||
"nvim-cmp": { "branch": "main", "commit": "d153771162bd9795d9f7142df5c674b61066a585" },
|
"nvim-cmp": { "branch": "main", "commit": "d153771162bd9795d9f7142df5c674b61066a585" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "6cedcb527e264c8f25e86afa8dae74c6692dee51" },
|
"nvim-dap": { "branch": "master", "commit": "6cedcb527e264c8f25e86afa8dae74c6692dee51" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "078972d39338a49ec13fc43a44e235cc43189276" },
|
"nvim-dap-ui": { "branch": "master", "commit": "4ce7b97dd8f50b4f672948a34bf8f3a56214fdb8" },
|
||||||
"nvim-dap-virtual-text": { "branch": "master", "commit": "ab988dbb7d20cdaebf9b3ef7554a89f6895de042" },
|
"nvim-dap-virtual-text": { "branch": "master", "commit": "ab988dbb7d20cdaebf9b3ef7554a89f6895de042" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "df58d91c9351a9dc5be6cf8d54f49ab0d9a64e73" },
|
"nvim-lspconfig": { "branch": "master", "commit": "df58d91c9351a9dc5be6cf8d54f49ab0d9a64e73" },
|
||||||
"nvim-navic": { "branch": "master", "commit": "15704c607569d6c5cfeab486d3ef9459645a70ce" },
|
"nvim-navic": { "branch": "master", "commit": "15704c607569d6c5cfeab486d3ef9459645a70ce" },
|
||||||
|
"nvim-notify": { "branch": "master", "commit": "f3024b912073774111202f5fa6518b0cd2a74432" },
|
||||||
"nvim-spectre": { "branch": "master", "commit": "1abe23ec9b7bc3082164f4cb842d521ef70e080e" },
|
"nvim-spectre": { "branch": "master", "commit": "1abe23ec9b7bc3082164f4cb842d521ef70e080e" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "219bd66585aa467b1c90fd01b54a2a423aaed4ab" },
|
"nvim-surround": { "branch": "main", "commit": "219bd66585aa467b1c90fd01b54a2a423aaed4ab" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "270c95556cad96d18ca547d86ae65927334b108b" },
|
"nvim-tree.lua": { "branch": "master", "commit": "89816ace70642e9d3db0dab3dc68918f8979ec31" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "ec0d0ffe51fab458a346b8a8d6f9d69490f3d7e1" },
|
"nvim-treesitter": { "branch": "master", "commit": "680807fa6a482c639119098bc48ca3831c66db13" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "40615e96075c743ef47aaf9de966dc348bec6459" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "40615e96075c743ef47aaf9de966dc348bec6459" },
|
||||||
"nvim-ts-rainbow2": { "branch": "master", "commit": "1ffe68cdd594633dfee0762feebfef81ed6f1fbb" },
|
"nvim-ts-rainbow2": { "branch": "master", "commit": "1ffe68cdd594633dfee0762feebfef81ed6f1fbb" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "986875b7364095d6535e28bd4aac3a9357e91bbe" },
|
"nvim-web-devicons": { "branch": "master", "commit": "986875b7364095d6535e28bd4aac3a9357e91bbe" },
|
||||||
|
@ -66,7 +67,7 @@
|
||||||
"vim-astro": { "branch": "main", "commit": "34732be5e9a5c28c2409f4490edf92d46d8b55a9" },
|
"vim-astro": { "branch": "main", "commit": "34732be5e9a5c28c2409f4490edf92d46d8b55a9" },
|
||||||
"vim-dadbod": { "branch": "master", "commit": "3f57c0cd41523423fd781422dfc833820095a3e8" },
|
"vim-dadbod": { "branch": "master", "commit": "3f57c0cd41523423fd781422dfc833820095a3e8" },
|
||||||
"vim-dadbod-completion": { "branch": "master", "commit": "fc7321a17f4c55db11fae89a884ddf4724020bae" },
|
"vim-dadbod-completion": { "branch": "master", "commit": "fc7321a17f4c55db11fae89a884ddf4724020bae" },
|
||||||
"vim-dadbod-ui": { "branch": "master", "commit": "4c306bef457ebfdbe71c76b49672d48ef310ddd3" },
|
"vim-dadbod-ui": { "branch": "master", "commit": "5f6a11d80128e05fcc8e5d5025b8acf6d77faa99" },
|
||||||
"vim-fugitive": { "branch": "master", "commit": "5f0d280b517cacb16f59316659966c7ca5e2bea2" },
|
"vim-fugitive": { "branch": "master", "commit": "5f0d280b517cacb16f59316659966c7ca5e2bea2" },
|
||||||
"vim-gnupg": { "branch": "main", "commit": "f9b608f29003dfde6450931dc0f495a912973a88" },
|
"vim-gnupg": { "branch": "main", "commit": "f9b608f29003dfde6450931dc0f495a912973a88" },
|
||||||
"vim-helm": { "branch": "master", "commit": "c2e7b85711d410e1d73e64eb5df7b70b1c4c10eb" },
|
"vim-helm": { "branch": "master", "commit": "c2e7b85711d410e1d73e64eb5df7b70b1c4c10eb" },
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"goolord/alpha-nvim",
|
"goolord/alpha-nvim",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"f-person/auto-dark-mode.nvim",
|
"f-person/auto-dark-mode.nvim",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazySpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"catppuccin/nvim",
|
"catppuccin/nvim",
|
||||||
|
@ -50,6 +51,7 @@ return {
|
||||||
symbols_outline = true,
|
symbols_outline = true,
|
||||||
ts_rainbow = true,
|
ts_rainbow = true,
|
||||||
vimwiki = true,
|
vimwiki = true,
|
||||||
|
notify = true,
|
||||||
},
|
},
|
||||||
highlight_overrides = {
|
highlight_overrides = {
|
||||||
all = function(colors)
|
all = function(colors)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvchad/nvim-colorizer.lua",
|
"nvchad/nvim-colorizer.lua",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"zbirenbaum/copilot.lua",
|
"zbirenbaum/copilot.lua",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
"tpope/vim-dadbod",
|
"tpope/vim-dadbod",
|
||||||
"kristijanhusak/vim-dadbod-completion",
|
"kristijanhusak/vim-dadbod-completion",
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
-- TODO: remove in nvim 0.9 because of upstream merge
|
|
||||||
"luukvbaal/stabilize.nvim",
|
|
||||||
-- zen mode
|
-- zen mode
|
||||||
"pocco81/true-zen.nvim",
|
"pocco81/true-zen.nvim",
|
||||||
-- respect project settings
|
-- respect project settings
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"j-hui/fidget.nvim",
|
"j-hui/fidget.nvim",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
"tpope/vim-fugitive",
|
"tpope/vim-fugitive",
|
||||||
{
|
{
|
||||||
|
@ -25,7 +26,7 @@ return {
|
||||||
local gs = require("gitsigns")
|
local gs = require("gitsigns")
|
||||||
|
|
||||||
gs.setup({
|
gs.setup({
|
||||||
on_attach = function(bufnr)
|
on_attach = function(_)
|
||||||
-- Gitsigns
|
-- Gitsigns
|
||||||
wk.register({
|
wk.register({
|
||||||
["<leader>h"] = {
|
["<leader>h"] = {
|
||||||
|
@ -98,67 +99,8 @@ return {
|
||||||
["ih"] = { ":<C-U>Gitsigns select_hunk<CR>", "Select inside Hunk" },
|
["ih"] = { ":<C-U>Gitsigns select_hunk<CR>", "Select inside Hunk" },
|
||||||
}, { mode = { "o", "x" } })
|
}, { mode = { "o", "x" } })
|
||||||
end,
|
end,
|
||||||
signs = {
|
current_line_blame = true,
|
||||||
add = {
|
|
||||||
hl = "GitSignsAdd",
|
|
||||||
text = "+",
|
|
||||||
numhl = "GitSignsAddNr",
|
|
||||||
linehl = "GitSignsAddLn",
|
|
||||||
},
|
|
||||||
change = {
|
|
||||||
hl = "GitSignsChange",
|
|
||||||
text = "~",
|
|
||||||
numhl = "GitSignsChangeNr",
|
|
||||||
linehl = "GitSignsChangeLn",
|
|
||||||
},
|
|
||||||
delete = {
|
|
||||||
hl = "GitSignsDelete",
|
|
||||||
text = "_",
|
|
||||||
numhl = "GitSignsDeleteNr",
|
|
||||||
linehl = "GitSignsDeleteLn",
|
|
||||||
},
|
|
||||||
topdelete = {
|
|
||||||
hl = "GitSignsDelete",
|
|
||||||
text = "‾",
|
|
||||||
numhl = "GitSignsDeleteNr",
|
|
||||||
linehl = "GitSignsDeleteLn",
|
|
||||||
},
|
|
||||||
changedelete = {
|
|
||||||
hl = "GitSignsChange",
|
|
||||||
text = "x",
|
|
||||||
numhl = "GitSignsChangeNr",
|
|
||||||
linehl = "GitSignsChangeLn",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
linehl = false,
|
|
||||||
numhl = false,
|
|
||||||
signcolumn = true,
|
|
||||||
word_diff = false,
|
|
||||||
watch_gitdir = { enable = false, interval = 1000, follow_files = true },
|
|
||||||
attach_to_untracked = true,
|
|
||||||
-- current line highlighting
|
|
||||||
current_line_blame = false,
|
|
||||||
current_line_blame_opts = {
|
|
||||||
delay = 1000,
|
|
||||||
ignore_whitespace = true,
|
|
||||||
virt_text = true,
|
|
||||||
virt_text_pos = "eol",
|
|
||||||
},
|
|
||||||
current_line_blame_formatter = "<author>, <author_time:%R> - <summary> | <abbrev_sha>",
|
current_line_blame_formatter = "<author>, <author_time:%R> - <summary> | <abbrev_sha>",
|
||||||
-- perf
|
|
||||||
max_file_length = 40000,
|
|
||||||
sign_priority = 6,
|
|
||||||
update_debounce = 100,
|
|
||||||
-- use the included status formatter
|
|
||||||
status_formatter = nil,
|
|
||||||
preview_config = {
|
|
||||||
border = "single",
|
|
||||||
style = "minimal",
|
|
||||||
relative = "cursor",
|
|
||||||
row = 0,
|
|
||||||
col = 1,
|
|
||||||
},
|
|
||||||
yadm = { enable = false },
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"dhruvasagar/vim-table-mode",
|
"dhruvasagar/vim-table-mode",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-neorg/neorg",
|
"nvim-neorg/neorg",
|
||||||
|
|
25
home/apps/neovim/lua/plugins/notify.lua
Normal file
25
home/apps/neovim/lua/plugins/notify.lua
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
config = function()
|
||||||
|
local notify = require("notify")
|
||||||
|
local stages = require("notify.stages.static")("top_down")
|
||||||
|
notify.setup({
|
||||||
|
background_colour = "#000000",
|
||||||
|
delay = 5000,
|
||||||
|
stages = {
|
||||||
|
function(...)
|
||||||
|
local opts = stages[1](...)
|
||||||
|
if opts then
|
||||||
|
opts.border = "double"
|
||||||
|
end
|
||||||
|
return opts
|
||||||
|
end,
|
||||||
|
unpack(stages, 2),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
vim.notify = notify
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-tree/nvim-tree.lua",
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"andweeb/presence.nvim",
|
"andweeb/presence.nvim",
|
||||||
|
@ -5,7 +6,7 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
local presence = require("presence")
|
local presence = require("presence")
|
||||||
|
|
||||||
function string.starts(self, str)
|
local function starts_with(self, str)
|
||||||
return self:find("^" .. str) ~= nil
|
return self:find("^" .. str) ~= nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -22,7 +23,7 @@ return {
|
||||||
local conceal = function(activity, info)
|
local conceal = function(activity, info)
|
||||||
local cur_file = vim.fn.expand("%:p")
|
local cur_file = vim.fn.expand("%:p")
|
||||||
for k, v in pairs(blacklist) do
|
for k, v in pairs(blacklist) do
|
||||||
if cur_file:starts(k) then
|
if starts_with(cur_file, k) then
|
||||||
return v
|
return v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -42,7 +43,7 @@ return {
|
||||||
-- Main image display (either "neovim" or "file")
|
-- Main image display (either "neovim" or "file")
|
||||||
main_image = "file",
|
main_image = "file",
|
||||||
show_time = false,
|
show_time = false,
|
||||||
buttons = function(buffer, repo_url)
|
buttons = function(_, repo_url)
|
||||||
local concealed = conceal()
|
local concealed = conceal()
|
||||||
if concealed then
|
if concealed then
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-pack/nvim-spectre",
|
"nvim-pack/nvim-spectre",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazySpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -9,6 +10,7 @@ return {
|
||||||
pcall(telescope.load_extension, "asynctasks")
|
pcall(telescope.load_extension, "asynctasks")
|
||||||
pcall(telescope.load_extension, "file_browser")
|
pcall(telescope.load_extension, "file_browser")
|
||||||
pcall(telescope.load_extension, "project")
|
pcall(telescope.load_extension, "project")
|
||||||
|
pcall(telescope.load_extension, "notify")
|
||||||
|
|
||||||
telescope.setup({
|
telescope.setup({
|
||||||
defaults = {
|
defaults = {
|
||||||
|
@ -25,6 +27,10 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
extensions = {
|
extensions = {
|
||||||
|
file_browser = {
|
||||||
|
grouped = true,
|
||||||
|
sorting_strategy = "ascending",
|
||||||
|
},
|
||||||
fzf = {
|
fzf = {
|
||||||
fuzzy = true,
|
fuzzy = true,
|
||||||
override_generic_sorter = true,
|
override_generic_sorter = true,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
|
@ -22,12 +23,13 @@ return {
|
||||||
wk.register({
|
wk.register({
|
||||||
["<leader>f"] = {
|
["<leader>f"] = {
|
||||||
name = "+Telescope",
|
name = "+Telescope",
|
||||||
b = { "<cmd>Telescope buffers<cr>", "File Browser" },
|
b = { "<cmd>Telescope file_browser grouped=true<cr>", "File browser" },
|
||||||
d = { "<cmd>Telescope find_files<cr>", "Find File" },
|
d = { "<cmd>Telescope find_files<cr>", "Find file" },
|
||||||
g = { "<cmd>Telescope live_grep<cr>", "Live Grep" },
|
g = { "<cmd>Telescope live_grep<cr>", "Live grep" },
|
||||||
h = { "<cmd>Telescope help_tags<cr>", "Help Tags" },
|
h = { "<cmd>Telescope help_tags<cr>", "Help tags" },
|
||||||
|
n = { "<cmd>Telescope notify<cr>", "Show notifications" },
|
||||||
p = { "<cmd>Telescope project<cr>", "Project" },
|
p = { "<cmd>Telescope project<cr>", "Project" },
|
||||||
r = { "<cmd>Telescope asynctasks all<cr>", "Run Asynctasks" },
|
r = { "<cmd>Telescope asynctasks all<cr>", "Run asynctasks" },
|
||||||
s = {
|
s = {
|
||||||
function()
|
function()
|
||||||
local confpath = vim.fn.resolve(vim.fn.stdpath("config"))
|
local confpath = vim.fn.resolve(vim.fn.stdpath("config"))
|
||||||
|
@ -44,9 +46,8 @@ return {
|
||||||
y = { '"+y', "Copy to clipboard" },
|
y = { '"+y', "Copy to clipboard" },
|
||||||
p = { '"+p', "Paste from clipboard" },
|
p = { '"+p', "Paste from clipboard" },
|
||||||
db = { "<cmd>DBUIToggle<cr>", "Toggle DBUI" },
|
db = { "<cmd>DBUIToggle<cr>", "Toggle DBUI" },
|
||||||
gd = { "<cmd>Gvdiff!<CR>", "Git Diff" },
|
gd = { "<cmd>Gvdiff!<CR>", "Git diff" },
|
||||||
ng = { "<cmd>Neogit<cr>", "Neogit" },
|
ng = { "<cmd>Neogit<cr>", "Neogit" },
|
||||||
sl = { "<cmd>SessionLoad<cr>", "Load Session" },
|
|
||||||
},
|
},
|
||||||
}, { mode = { "n", "v" } })
|
}, { mode = { "n", "v" } })
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue