Set up neovim AI plugins (for test run)
							parent
							
								
									37a05500bf
								
							
						
					
					
						commit
						1bb976d442
					
				| 
						 | 
				
			
			@ -0,0 +1,16 @@
 | 
			
		|||
require("codecompanion").setup({
 | 
			
		||||
  extensions = {
 | 
			
		||||
    mcphub = {
 | 
			
		||||
      callback = "mcphub.extensions.codecompanion",
 | 
			
		||||
      opts = {
 | 
			
		||||
        make_vars = true,
 | 
			
		||||
        make_slash_commands = true,
 | 
			
		||||
        show_result_in_chat = true
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  strategies = {
 | 
			
		||||
    chat = { adapter = "openai" },
 | 
			
		||||
    inline = { adapter = "openai" },
 | 
			
		||||
  },
 | 
			
		||||
})
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
require("copilot_cmp").setup()
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
require("copilot").setup({})
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
require("mcphub").setup({})
 | 
			
		||||
| 
						 | 
				
			
			@ -62,7 +62,8 @@ cmp.setup({
 | 
			
		|||
    ["<CR>"] = c_l,
 | 
			
		||||
  }),
 | 
			
		||||
  sources = {
 | 
			
		||||
    { name = "nvim_lsp", keyword_length = 1 },
 | 
			
		||||
    { name = "copilot",  group_index = 2 },
 | 
			
		||||
    { name = "nvim_lsp", keyword_length = 8 },
 | 
			
		||||
    { name = "luasnip",  max_item_count = 16 },
 | 
			
		||||
    { name = "path" },
 | 
			
		||||
    { name = "buffer",   max_item_count = 8 },
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -72,5 +72,9 @@ bootstrap_paq({
 | 
			
		|||
  { "3rd/image.nvim", build = false },
 | 
			
		||||
  { "polarmutex/beancount.nvim" },
 | 
			
		||||
  { "jamesblckwell/nvimkit.nvim" },
 | 
			
		||||
  { 'olimorris/codecompanion.nvim' },
 | 
			
		||||
  { "ravitemer/mcphub.nvim",                       build = "pnpm install -g mcp-hub@latest" },
 | 
			
		||||
  { "zbirenbaum/copilot.lua" },
 | 
			
		||||
  { "zbirenbaum/copilot-cmp" }
 | 
			
		||||
})
 | 
			
		||||
-- }}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue