Compare commits
	
		
			6 Commits 
		
	
	
		
			8046bd1868
			...
			1bb976d442
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
									
								
								 | 
						1bb976d442 | |
| 
							
							
								
									
								
								 | 
						37a05500bf | |
| 
							
							
								
									
								
								 | 
						e8962144e5 | |
| 
							
							
								
									
								
								 | 
						ae2a439c14 | |
| 
							
							
								
									
								
								 | 
						2c7f44ce16 | |
| 
							
							
								
									
								
								 | 
						b58ff906e9 | 
| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
if [ ! -d ~/.zk ]; then
 | 
			
		||||
    echo "[zk] Setting up zettelkasten"
 | 
			
		||||
    gh repo clone zk ~/.zk
 | 
			
		||||
else
 | 
			
		||||
    echo "[zk] Zettelkasten already set up."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
read -p "Would you like open your zettelkasten? [y/N] " -n 1 -r
 | 
			
		||||
echo
 | 
			
		||||
 | 
			
		||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
 | 
			
		||||
  if [ -x "$(command -v zk)" ]; then
 | 
			
		||||
    zk
 | 
			
		||||
  else
 | 
			
		||||
    echo "Error: 'zk' command not found or not executable"
 | 
			
		||||
    exit 1
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			@ -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,10 +62,11 @@ cmp.setup({
 | 
			
		|||
    ["<CR>"] = c_l,
 | 
			
		||||
  }),
 | 
			
		||||
  sources = {
 | 
			
		||||
    { name = "nvim_lsp", keyword_length = 1 },
 | 
			
		||||
    { name = "luasnip", max_item_count = 16 },
 | 
			
		||||
    { 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 },
 | 
			
		||||
    { name = "buffer",   max_item_count = 8 },
 | 
			
		||||
  },
 | 
			
		||||
  window = {
 | 
			
		||||
    completion = cmp.config.window.bordered({ border = { "┌", "─", "┐", "│", "┘", "─", "└", "│" } }),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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