Add copilot chat and other nice things

This commit is contained in:
Fraser Fewster 2025-10-02 01:02:40 +01:00 committed by Fraser Fewster
parent bbda49daf5
commit ba8725e5fe
5 changed files with 34 additions and 2 deletions

View File

@ -0,0 +1,18 @@
return {
{
'CopilotC-Nvim/CopilotChat.nvim',
dependencies = {
{ 'nvim-lua/plenary.nvim', branch = 'master' },
},
build = 'make tiktoken',
init = function()
local map = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
map('n', '<leader>ch', '<Cmd>CopilotChatToggle<CR>', opts)
end,
opts = {
-- See Configuration section for options
},
},
}

View File

@ -6,7 +6,7 @@ return {
config = function() config = function()
require('copilot').setup { require('copilot').setup {
suggestion = { suggestion = {
enabled = true, enabled = false,
auto_trigger = true, auto_trigger = true,
keymap = { keymap = {
accept = '<M-l>', accept = '<M-l>',

View File

@ -7,4 +7,5 @@ return {
require 'custom.plugins.tabs', require 'custom.plugins.tabs',
require 'custom.plugins.copilot', require 'custom.plugins.copilot',
require 'custom.plugins.neo-tree-config', require 'custom.plugins.neo-tree-config',
require 'custom.plugins.sleuth',
} }

View File

@ -24,7 +24,13 @@ return {
end, { desc = 'Focus NeoTree' }) end, { desc = 'Focus NeoTree' })
-- Setup neo-tree -- Setup neo-tree
require('neo-tree').setup {} require('neo-tree').setup {
filesystem = {
follow_current_file = {
enabled = true,
},
},
}
end, end,
}, },
} }

View File

@ -0,0 +1,7 @@
return {
{
'tpope/vim-sleuth',
config = function() end,
opts = {},
},
}