add(base): thefuck & neotree bindings

This commit is contained in:
Evan Reichard 2024-07-25 12:29:25 -04:00
parent 1d2edd66c6
commit 64d95dfef5
5 changed files with 66 additions and 62 deletions

View File

@ -11,6 +11,7 @@
profileExtra = '' profileExtra = ''
SHELL="$BASH" SHELL="$BASH"
PATH=~/.bin:$PATH PATH=~/.bin:$PATH
eval "$(thefuck --alias)"
set -o vi set -o vi
bind "set show-mode-in-prompt on" bind "set show-mode-in-prompt on"
neofetch neofetch

View File

@ -20,7 +20,7 @@ in
# Home Manager Config # Home Manager Config
home.username = "evanreichard"; home.username = "evanreichard";
home.homeDirectory = "/Users/evanreichard"; home.homeDirectory = "/Users/evanreichard";
home.stateVersion = "23.11"; home.stateVersion = "24.05";
programs.home-manager.enable = true; programs.home-manager.enable = true;
# Global Packages # Global Packages
@ -40,6 +40,7 @@ in
pre-commit pre-commit
python311 python311
ssm-session-manager-plugin ssm-session-manager-plugin
thefuck
tldr tldr
] ++ optionals isDarwin [ ] ++ optionals isDarwin [
kitty kitty

View File

@ -184,9 +184,8 @@ end
null_ls.setup({ null_ls.setup({
sources = { sources = {
-- Prettier Formatting -- Prettier Formatting
null_ls.builtins.formatting.prettier.with({ null_ls.builtins.formatting.prettier,
extra_filetypes = { "template" }, null_ls.builtins.formatting.prettier.with({ filetypes = { "template" } }),
}),
require("none-ls.diagnostics.eslint_d").with({ require("none-ls.diagnostics.eslint_d").with({
condition = function(utils) condition = function(utils)
return has_eslint_in_parents(vim.fn.getcwd()) return has_eslint_in_parents(vim.fn.getcwd())

View File

@ -1 +1,2 @@
require("neo-tree").setup({window = {mappings = {["<space>"] = "none"}}}) require("neo-tree").setup({ window = { mappings = { ["<space>"] = "none" } } })
vim.keymap.set("n", "<leader>t", ":Neotree toggle<CR>", { silent = true })

View File

@ -3,61 +3,63 @@ local wk = require("which-key")
wk.setup({}) wk.setup({})
wk.register({ wk.register({
K = {"Definition Hover"}, K = { "Definition Hover" },
["<C-k>"] = {"Signature Help"}, ["<C-k>"] = { "Signature Help" },
["<leader>"] = { ["<leader>"] = {
a = { "Aerial" },
t = { "NeoTree" },
q = { q = {
name = "Diagnostics", name = "Diagnostics",
q = {"Toggle Diagnostic List"}, q = { "Toggle Diagnostic List" },
t = {"Toggle Inline Diagnostics"}, t = { "Toggle Inline Diagnostics" },
n = {"Next Diagnostic"}, n = { "Next Diagnostic" },
N = {"Previous Diagnostic"}, N = { "Previous Diagnostic" },
e = {"Open Diagnostic Float"} e = { "Open Diagnostic Float" },
}, },
d = { d = {
name = "Debug", name = "Debug",
b = {"Toggle Breakpoint"}, b = { "Toggle Breakpoint" },
u = {"Toggle UI"}, u = { "Toggle UI" },
c = {"Continue"}, c = { "Continue" },
t = {"Run Test"} t = { "Run Test" },
}, },
g = { g = {
name = "DiffView", name = "DiffView",
o = {"<cmd>DiffviewOpen<cr>", "Open Diff - Current"}, o = { "<cmd>DiffviewOpen<cr>", "Open Diff - Current" },
O = {"<cmd>DiffviewOpen origin/main...HEAD<cr>", "Open Diff - Main"}, O = { "<cmd>DiffviewOpen origin/main...HEAD<cr>", "Open Diff - Main" },
h = {"<cmd>DiffviewFileHistory<cr>", "Diff History"}, h = { "<cmd>DiffviewFileHistory<cr>", "Diff History" },
H = { H = {
"<cmd>DiffviewFileHistory --range=origin..HEAD<cr>", "<cmd>DiffviewFileHistory --range=origin..HEAD<cr>",
"Diff History - Main" "Diff History - Main",
}, },
c = {"<cmd>DiffviewClose<cr>", "Close Diff"}, c = { "<cmd>DiffviewClose<cr>", "Close Diff" },
b = {"Git Blame Line"}, b = { "Git Blame Line" },
B = {"Git Blame Full"} B = { "Git Blame Full" },
}, },
f = { f = {
name = "Find - Telescope", name = "Find - Telescope",
f = {"<cmd>Telescope find_files<cr>", "Find File"}, f = { "<cmd>Telescope find_files<cr>", "Find File" },
g = {"<cmd>Telescope live_grep<cr>", "Live Grep"}, g = { "<cmd>Telescope live_grep<cr>", "Live Grep" },
b = {"<cmd>Telescope buffers<cr>", "Find Buffer"}, b = { "<cmd>Telescope buffers<cr>", "Find Buffer" },
j = {"<cmd>Telescope jumplist<cr>", "Jump List"}, j = { "<cmd>Telescope jumplist<cr>", "Jump List" },
h = {"<cmd>Telescope help_tags<cr>", "Help Tags"} h = { "<cmd>Telescope help_tags<cr>", "Help Tags" },
}, },
l = { l = {
name = "LSP", name = "LSP",
D = {"Declaration"}, D = { "Declaration" },
d = {"Definition"}, d = { "Definition" },
f = {"Format"}, f = { "Format" },
i = {"Implementation"}, i = { "Implementation" },
n = {"Rename"}, n = { "Rename" },
r = {"References"}, r = { "References" },
t = {"Type Definition"} t = { "Type Definition" },
}, },
s = { s = {
name = "Screenshot", name = "Screenshot",
mode = {'v', 'n'}, mode = { "v", "n" },
b = {"Buffer Screenshot", mode = {'v', 'n'}}, b = { "Buffer Screenshot", mode = { "v", "n" } },
s = {"Selected Screenshot", mode = 'v'}, s = { "Selected Screenshot", mode = "v" },
v = {"Visual Screenshot", mode = 'n'} v = { "Visual Screenshot", mode = "n" },
} },
} },
}) })