Skip to content

Commit 8e241e9

Browse files
committed
feat: add code companion keymap and alias
1 parent 84689df commit 8e241e9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.config/nvim/lua/core/mappings.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ keymap("n", "<leader>n", ":Oil<cr>", opts)
3333
-- keymap("n", "<C-u", "<C-u>zz", opts)
3434

3535
-- spawns copilot from the given line
36-
keymap("n", "<leader>cop", ":Copilot panel<cr>", opts)
36+
-- keymap("n", "<leader>cop", ":Copilot panel<cr>", opts)
3737

3838
-- Navigation Remaps
3939
keymap("n", "<leader>h", ":wincmd h<cr>", opts)
@@ -76,4 +76,6 @@ wk.add({
7676
{"<leader>gb", "<cmd>Telescope git_branches<cr>", desc = "Git Branches"},
7777
{"<leader>gc", "<cmd>Telescope git_commits<cr>", desc = "Git Commits"},
7878
{"<leader>gs", "<cmd>Neogit<cr>", desc = "Git Status"},
79+
{"<leader>co", "<cmd>CodeCompanionChat<cr>", desc = "Code Companion Chat"},
80+
{"<leader>fmt", "<cmd>set formatprg=<cr>", desc = "Reset formatter"},
7981
})

.config/nvim/lua/core/settings.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ local options = {
2323
termguicolors = true,
2424
syntax = "on",
2525
completeopt = "menuone,noinsert,noselect",
26+
textwidth = 80,
27+
spell = true,
28+
spelllang = "en_us",
2629
-- enable if you want a dark background, leaving commented out uses transparent from line 49
2730
-- background = "dark",
2831
}

.zshrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ alias gs="git status"
118118
alias gcm="git checkout main && git pull"
119119
alias gcr="git checkout main && git reset --hard origin/main"
120120
alias zd="zed ."
121+
alias cl="clear"
122+
alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale"
121123

122124

123125
# ranger
@@ -138,6 +140,7 @@ test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell
138140

139141
#If you come from bash you might have to change your $PATH.
140142
export PATH=$HOME/go/bin:$PATH
143+
export PATH=$HOME/neovim/bin:$PATH
141144

142145
# if you want to load extra zshrc files to source additional config then create
143146
# a $HOME/ext-config directory and add files ending in .zsrch for this to source them

0 commit comments

Comments
 (0)