diff --git a/lua/plugins/editing.lua b/lua/plugins/editing.lua index 61b48d6..e1fbdce 100644 --- a/lua/plugins/editing.lua +++ b/lua/plugins/editing.lua @@ -70,6 +70,7 @@ return { -- generic vim.keymap.set('n', 'tl', builtin.live_grep, { desc = 'Telescope live grep' }) + vim.keymap.set('n', 'td', builtin.lsp_document_symbols, { desc = 'Telescope document symbols' }) vim.keymap.set('n', 'th', builtin.help_tags, { desc = 'Telescope help tags' }) vim.keymap.set('n', 'to', builtin.oldfiles, { desc = 'Telescope oldfiles' }) vim.keymap.set('n', 'tt', function() @@ -141,8 +142,11 @@ return { }, opts = { provider = "yor1", - auto_suggestions_provider = "yoqwen32", + auto_suggestions_provider = "codestral", cursor_applying_provider = "yoqwen32", + behaviour = { + enable_cursor_planning_mode = true, -- enable cursor planning mode! + }, file_selector = { provider = "telescope", @@ -172,6 +176,13 @@ return { endpoint = "https://api.siliconflow.cn/v1", model = "Pro/deepseek-ai/DeepSeek-V3", }, + + codestral = { + __inherited_from = 'openai', + api_key_name = 'CODESTRAL_API_KEY', + endpoint = 'https://codestral.mistral.ai/v1', + model = 'codestral-latest' + } }, } }, {