feat(nvim): added chatgpt.lua
This commit is contained in:
		
							parent
							
								
									6b581da1a0
								
							
						
					
					
						commit
						3e237e26e4
					
				
							
								
								
									
										8
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										8
									
								
								init.lua
								
								
								
								
							| 
						 | 
					@ -102,8 +102,13 @@ require('lazy').setup({
 | 
				
			||||||
    -- Autocompletion
 | 
					    -- Autocompletion
 | 
				
			||||||
    'hrsh7th/nvim-cmp',
 | 
					    'hrsh7th/nvim-cmp',
 | 
				
			||||||
    dependencies = {
 | 
					    dependencies = {
 | 
				
			||||||
 | 
					      'hrsh7th/cmp-nvim-lsp',
 | 
				
			||||||
      -- Snippet Engine & its associated nvim-cmp source
 | 
					      -- Snippet Engine & its associated nvim-cmp source
 | 
				
			||||||
      'L3MON4D3/LuaSnip',
 | 
					      'L3MON4D3/LuaSnip',
 | 
				
			||||||
 | 
					      event = "VeryLazy",
 | 
				
			||||||
 | 
					      config = function()
 | 
				
			||||||
 | 
					        require("luasnip.loaders.from_lua").load({ paths = "./snippets" })
 | 
				
			||||||
 | 
					      end,
 | 
				
			||||||
      'saadparwaiz1/cmp_luasnip',
 | 
					      'saadparwaiz1/cmp_luasnip',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      -- Adds LSP completion capabilities
 | 
					      -- Adds LSP completion capabilities
 | 
				
			||||||
| 
						 | 
					@ -229,6 +234,9 @@ vim.o.hlsearch = false
 | 
				
			||||||
-- Make line numbers default
 | 
					-- Make line numbers default
 | 
				
			||||||
vim.wo.number = true
 | 
					vim.wo.number = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- Make line numbers relative default
 | 
				
			||||||
 | 
					vim.wo.relativenumber = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Enable mouse mode
 | 
					-- Enable mouse mode
 | 
				
			||||||
vim.o.mouse = 'a'
 | 
					vim.o.mouse = 'a'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,13 @@
 | 
				
			||||||
return {
 | 
					return {
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    "jackMort/ChatGPT.nvim",
 | 
					    "jackMort/ChatGPT.nvim",
 | 
				
			||||||
 | 
					    event = "VeryLazy",
 | 
				
			||||||
    config = function()
 | 
					    config = function()
 | 
				
			||||||
      require("chatgpt").setup()
 | 
					      require("chatgpt").setup(
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          api_key_cmd = "pass show azure/hypera/oai/token",
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      )
 | 
				
			||||||
    end,
 | 
					    end,
 | 
				
			||||||
    dependencies = {
 | 
					    dependencies = {
 | 
				
			||||||
      "MunifTanjim/nui.nvim",
 | 
					      "MunifTanjim/nui.nvim",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue