Include copilot chat and completions.

Refactor configuration into more modules
This commit is contained in:
Daniel McKnight 2025-06-03 08:34:58 -07:00
parent b6d0624e34
commit 05874830dd
4 changed files with 160 additions and 103 deletions

View file

@ -12,6 +12,8 @@ vim.cmd("set shiftwidth=2")
-- Configure Editor Settings
vim.cmd("set number")
vim.cmd("set splitbelow")
vim.cmd("set splitright")
vim.cmd("set spl=en_us spell")
vim.opt.guifont = "JetBrainsMonoNerdFontMono:14"
-- Custom Key Binds
@ -20,18 +22,28 @@ vim.g.mapleader = " "
-- Init Lazy Plugin Manager
require("config.lazy")
-- Configure nvim Keymaps
vim.keymap.set("n", "<leader>r", ":source %<CR>", { desc = "Reload Config" })
-- Configure Telescope Keymaps
local builtin = require("telescope.builtin")
vim.keymap.set("n", "<C-p>", builtin.find_files, {})
vim.keymap.set("n", "<leader>gg", builtin.live_grep, { desc = "Grep Files" })
vim.keymap.set("n", "<leader>ff", builtin.find_files, { desc = "Find File"})
vim.keymap.set("n", "<leader>fg", builtin.live_grep, { desc = "Grep Files" })
vim.keymap.set("n", "<leader>fb", builtin.buffers, { desc = "Open Editors" })
-- Init Treesitter Syntax Highlighting
--require("config.treesitter")
-- Configure NeoTree (FS View)
vim.keymap.set("n", "<leader>ft", ":Neotree filesystem reveal left<CR>")
vim.keymap.set("n", "<leader>ft", ":Neotree filesystem toggle left<CR>")
-- Configure Git
vim.keymap.set("n", "<leader>gd", ":Gitsigns preview_hunk<CR>", { desc = "Git Diff" })
vim.keymap.set("n", "<leader>gb", ":Gitsigns toggle_current_line_blame<CR>", { desc = "Git Blame" })
-- Configure Copilot
--vim.keymap.set("n", "<leader>cp", ":Copilot panel<CR>", { desc = "Open Copilot Panel" })
vim.keymap.set("n", "<leader>ce", ":Copilot enable<CR>", { desc = "Enable Copilot Completions" })
vim.keymap.set("n", "<leader>cd", ":Copilot disable<CR>", { desc = "Disable Copilot Completions" })
vim.keymap.set("n", "<leader>cc", ":CopilotChatToggle<CR>", { desc = "Toggle Copilot Chat" })
vim.keymap.set("n", "<leader>cx", ":CopilotChatReset<CR>", { desc = "Reset Copilot Chat" })