add(base): thefuck & neotree bindings
This commit is contained in:
parent
1d2edd66c6
commit
64d95dfef5
@ -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
|
||||||
|
3
home.nix
3
home.nix
@ -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
|
||||||
|
@ -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())
|
||||||
|
@ -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 })
|
||||||
|
@ -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>"] = {
|
||||||
q = {
|
a = { "Aerial" },
|
||||||
name = "Diagnostics",
|
t = { "NeoTree" },
|
||||||
q = {"Toggle Diagnostic List"},
|
q = {
|
||||||
t = {"Toggle Inline Diagnostics"},
|
name = "Diagnostics",
|
||||||
n = {"Next Diagnostic"},
|
q = { "Toggle Diagnostic List" },
|
||||||
N = {"Previous Diagnostic"},
|
t = { "Toggle Inline Diagnostics" },
|
||||||
e = {"Open Diagnostic Float"}
|
n = { "Next Diagnostic" },
|
||||||
},
|
N = { "Previous Diagnostic" },
|
||||||
d = {
|
e = { "Open Diagnostic Float" },
|
||||||
name = "Debug",
|
},
|
||||||
b = {"Toggle Breakpoint"},
|
d = {
|
||||||
u = {"Toggle UI"},
|
name = "Debug",
|
||||||
c = {"Continue"},
|
b = { "Toggle Breakpoint" },
|
||||||
t = {"Run Test"}
|
u = { "Toggle UI" },
|
||||||
},
|
c = { "Continue" },
|
||||||
g = {
|
t = { "Run Test" },
|
||||||
name = "DiffView",
|
},
|
||||||
o = {"<cmd>DiffviewOpen<cr>", "Open Diff - Current"},
|
g = {
|
||||||
O = {"<cmd>DiffviewOpen origin/main...HEAD<cr>", "Open Diff - Main"},
|
name = "DiffView",
|
||||||
h = {"<cmd>DiffviewFileHistory<cr>", "Diff History"},
|
o = { "<cmd>DiffviewOpen<cr>", "Open Diff - Current" },
|
||||||
H = {
|
O = { "<cmd>DiffviewOpen origin/main...HEAD<cr>", "Open Diff - Main" },
|
||||||
"<cmd>DiffviewFileHistory --range=origin..HEAD<cr>",
|
h = { "<cmd>DiffviewFileHistory<cr>", "Diff History" },
|
||||||
"Diff History - Main"
|
H = {
|
||||||
},
|
"<cmd>DiffviewFileHistory --range=origin..HEAD<cr>",
|
||||||
c = {"<cmd>DiffviewClose<cr>", "Close Diff"},
|
"Diff History - Main",
|
||||||
b = {"Git Blame Line"},
|
},
|
||||||
B = {"Git Blame Full"}
|
c = { "<cmd>DiffviewClose<cr>", "Close Diff" },
|
||||||
},
|
b = { "Git Blame Line" },
|
||||||
f = {
|
B = { "Git Blame Full" },
|
||||||
name = "Find - Telescope",
|
},
|
||||||
f = {"<cmd>Telescope find_files<cr>", "Find File"},
|
f = {
|
||||||
g = {"<cmd>Telescope live_grep<cr>", "Live Grep"},
|
name = "Find - Telescope",
|
||||||
b = {"<cmd>Telescope buffers<cr>", "Find Buffer"},
|
f = { "<cmd>Telescope find_files<cr>", "Find File" },
|
||||||
j = {"<cmd>Telescope jumplist<cr>", "Jump List"},
|
g = { "<cmd>Telescope live_grep<cr>", "Live Grep" },
|
||||||
h = {"<cmd>Telescope help_tags<cr>", "Help Tags"}
|
b = { "<cmd>Telescope buffers<cr>", "Find Buffer" },
|
||||||
},
|
j = { "<cmd>Telescope jumplist<cr>", "Jump List" },
|
||||||
l = {
|
h = { "<cmd>Telescope help_tags<cr>", "Help Tags" },
|
||||||
name = "LSP",
|
},
|
||||||
D = {"Declaration"},
|
l = {
|
||||||
d = {"Definition"},
|
name = "LSP",
|
||||||
f = {"Format"},
|
D = { "Declaration" },
|
||||||
i = {"Implementation"},
|
d = { "Definition" },
|
||||||
n = {"Rename"},
|
f = { "Format" },
|
||||||
r = {"References"},
|
i = { "Implementation" },
|
||||||
t = {"Type Definition"}
|
n = { "Rename" },
|
||||||
},
|
r = { "References" },
|
||||||
s = {
|
t = { "Type Definition" },
|
||||||
name = "Screenshot",
|
},
|
||||||
mode = {'v', 'n'},
|
s = {
|
||||||
b = {"Buffer Screenshot", mode = {'v', 'n'}},
|
name = "Screenshot",
|
||||||
s = {"Selected Screenshot", mode = 'v'},
|
mode = { "v", "n" },
|
||||||
v = {"Visual Screenshot", mode = 'n'}
|
b = { "Buffer Screenshot", mode = { "v", "n" } },
|
||||||
}
|
s = { "Selected Screenshot", mode = "v" },
|
||||||
}
|
v = { "Visual Screenshot", mode = "n" },
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user