Add copilot chat and other nice things
This commit is contained in:
parent
bbda49daf5
commit
ba8725e5fe
|
|
@ -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
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@ return {
|
|||
config = function()
|
||||
require('copilot').setup {
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
enabled = false,
|
||||
auto_trigger = true,
|
||||
keymap = {
|
||||
accept = '<M-l>',
|
||||
|
|
|
|||
|
|
@ -7,4 +7,5 @@ return {
|
|||
require 'custom.plugins.tabs',
|
||||
require 'custom.plugins.copilot',
|
||||
require 'custom.plugins.neo-tree-config',
|
||||
require 'custom.plugins.sleuth',
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,13 @@ return {
|
|||
end, { desc = 'Focus NeoTree' })
|
||||
|
||||
-- Setup neo-tree
|
||||
require('neo-tree').setup {}
|
||||
require('neo-tree').setup {
|
||||
filesystem = {
|
||||
follow_current_file = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
{
|
||||
'tpope/vim-sleuth',
|
||||
config = function() end,
|
||||
opts = {},
|
||||
},
|
||||
}
|
||||
Loading…
Reference in New Issue