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 = ''
SHELL="$BASH"
PATH=~/.bin:$PATH
eval "$(thefuck --alias)"
set -o vi
bind "set show-mode-in-prompt on"
neofetch

View File

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

View File

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

View File

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

View File

@ -6,20 +6,22 @@ wk.register({
K = { "Definition Hover" },
["<C-k>"] = { "Signature Help" },
["<leader>"] = {
a = { "Aerial" },
t = { "NeoTree" },
q = {
name = "Diagnostics",
q = { "Toggle Diagnostic List" },
t = { "Toggle Inline Diagnostics" },
n = { "Next Diagnostic" },
N = { "Previous Diagnostic" },
e = {"Open Diagnostic Float"}
e = { "Open Diagnostic Float" },
},
d = {
name = "Debug",
b = { "Toggle Breakpoint" },
u = { "Toggle UI" },
c = { "Continue" },
t = {"Run Test"}
t = { "Run Test" },
},
g = {
name = "DiffView",
@ -28,11 +30,11 @@ wk.register({
h = { "<cmd>DiffviewFileHistory<cr>", "Diff History" },
H = {
"<cmd>DiffviewFileHistory --range=origin..HEAD<cr>",
"Diff History - Main"
"Diff History - Main",
},
c = { "<cmd>DiffviewClose<cr>", "Close Diff" },
b = { "Git Blame Line" },
B = {"Git Blame Full"}
B = { "Git Blame Full" },
},
f = {
name = "Find - Telescope",
@ -40,7 +42,7 @@ wk.register({
g = { "<cmd>Telescope live_grep<cr>", "Live Grep" },
b = { "<cmd>Telescope buffers<cr>", "Find Buffer" },
j = { "<cmd>Telescope jumplist<cr>", "Jump List" },
h = {"<cmd>Telescope help_tags<cr>", "Help Tags"}
h = { "<cmd>Telescope help_tags<cr>", "Help Tags" },
},
l = {
name = "LSP",
@ -50,14 +52,14 @@ wk.register({
i = { "Implementation" },
n = { "Rename" },
r = { "References" },
t = {"Type Definition"}
t = { "Type Definition" },
},
s = {
name = "Screenshot",
mode = {'v', 'n'},
b = {"Buffer Screenshot", mode = {'v', 'n'}},
s = {"Selected Screenshot", mode = 'v'},
v = {"Visual Screenshot", mode = 'n'}
}
}
mode = { "v", "n" },
b = { "Buffer Screenshot", mode = { "v", "n" } },
s = { "Selected Screenshot", mode = "v" },
v = { "Visual Screenshot", mode = "n" },
},
},
})