diff --git a/lazy-lock.json b/lazy-lock.json index e424028..7f2d1a1 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -4,6 +4,7 @@ "auto-session": { "branch": "main", "commit": "82630e2f70be140f8dcc75a12e2ee2839e8488c2" }, "base46": { "branch": "v2.5", "commit": "fde7a2cd54599e148d376f82980407c2d24b0fa2" }, "bufresize.nvim": { "branch": "master", "commit": "3b19527ab936d6910484dcc20fb59bdb12322d8b" }, + "cmp-async-path": { "branch": "main", "commit": "9d581eec5acf812316913565c135b0d1ee2c9a71" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" }, "cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" }, diff --git a/lua/nvchad/configs/cmp.lua b/lua/configs/cmp.lua similarity index 82% rename from lua/nvchad/configs/cmp.lua rename to lua/configs/cmp.lua index 28071ae..a31c2ed 100644 --- a/lua/nvchad/configs/cmp.lua +++ b/lua/configs/cmp.lua @@ -2,7 +2,7 @@ dofile(vim.g.base46_cache .. "cmp") local cmp = require "cmp" -local options = { +cmp.setup { completion = { completeopt = "menu,menuone" }, snippet = { @@ -50,8 +50,15 @@ local options = { { name = "luasnip" }, { name = "buffer" }, { name = "nvim_lua" }, - { name = "path" }, + { name = "async_path" }, }, } -return vim.tbl_deep_extend("force", options, require "nvchad.cmp") +cmp.setup.cmdline(':', { + mapping = cmp.mapping.preset.cmdline(), + sources = cmp.config.sources({ + { name = 'path' }, + { name = 'cmdline' }, + }), + matching = { disallow_symbol_nonprefix_matching = false }, +}) diff --git a/lua/configs/copilotchat.lua b/lua/configs/copilotchat.lua index 890ef22..97d3110 100644 --- a/lua/configs/copilotchat.lua +++ b/lua/configs/copilotchat.lua @@ -1,5 +1,5 @@ require("CopilotChat").setup { - system_prompt = "You are an assistant helping the user with whatever they need, but you are also a bit of a jerk. Do not use profanity.", + -- system_prompt = "You are an assistant helping the user with whatever they need, but you are also a bit of a jerk. Do not use profanity.", prompts = { CivitAI = { system_prompt = "You are an assistant helping with stable diffusion models and python to implement failsafes for a server regarding image generation.", diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 8574638..f73c97b 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -263,10 +263,11 @@ return { "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-buffer", "hrsh7th/cmp-path", + "FelipeLema/cmp-async-path" }, }, opts = function() - return require "nvchad.configs.cmp" + return require "configs.cmp" end, }, diff --git a/nvim.tar.gz b/nvim.tar.gz deleted file mode 100644 index fefb8c4..0000000 Binary files a/nvim.tar.gz and /dev/null differ