From ed622165b8f0130293a7648e134d617cf96939ef Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 6 May 2025 07:18:21 +0100 Subject: [PATCH] Fixing some things --- lua/keymap.lua | 2 +- lua/plugins/debug.lua | 20 ++++++++++---------- lua/plugins/lsp.lua | 8 ++++++++ 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/lua/keymap.lua b/lua/keymap.lua index 2bec8f4..8800f27 100644 --- a/lua/keymap.lua +++ b/lua/keymap.lua @@ -135,7 +135,7 @@ vim.api.nvim_create_autocmd('FileType', { vim.keymap.set('i', '', '', { buffer = true, desc = 'Use shift enter to start a new line' }) vim.keymap.set('n', '', 'G', { buffer = true, desc = 'Use enter in normal mode to go to the end of the chat' }) - local models = { 'gpt-4.1', 'gemini-2.5-pro', 'gemini-2.0-flash-001', 'claude-3.7-sonnet-thought', 'o3-mini' } + local models = { 'gpt-4.1', 'gemini-2.5-pro', 'gemini-2.0-flash-001', 'claude-3.7-sonnet-thought', 'o4-mini' } -- Loop through models and create keymaps for each for i, model in ipairs(models) do vim.keymap.set('n', '', 'mzggj0WC' .. model .. '`z', { buffer = true, desc = 'Switch to ' .. model }) diff --git a/lua/plugins/debug.lua b/lua/plugins/debug.lua index 4c3e125..5a2bd54 100644 --- a/lua/plugins/debug.lua +++ b/lua/plugins/debug.lua @@ -73,7 +73,7 @@ return { function() require('dapui').toggle() end, - desc = 'Debug: See last session result.', + desc = 'Debug: Toggle UI', }, }, config = function() @@ -147,15 +147,15 @@ return { icons = { expanded = '▾', collapsed = '▸', current_frame = '*' }, controls = { icons = { - pause = '⏸', - play = '▶', - step_into = '⏎', - step_over = '⏭', - step_out = '⏮', - step_back = 'b', - run_last = '▶▶', - terminate = '⏹', - disconnect = '⏏', + pause = '', + play = '', + step_into = '󰆹', + step_over = '󰆷', + step_out = '󰆸', + step_back = '', + run_last = '', + terminate = '', + disconnect = '', }, }, } diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index cd45b00..e6887c4 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -242,12 +242,20 @@ return { }, }, filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }, + capabilities = { + documentFormattingProvider = true, + documentRangeFormattingProvider = true, + }, }, volar = { on_attach = function(client, bufnr) client.server_capabilities.documentFormattingProvider = false end, + capabilities = { + documentFormattingProvider = true, + documentRangeFormattingProvider = true, + }, }, phpactor = {