Fixing some things

This commit is contained in:
Chris
2025-05-06 07:18:21 +01:00
parent 3ba111e55c
commit ed622165b8
3 changed files with 19 additions and 11 deletions

View File

@@ -135,7 +135,7 @@ vim.api.nvim_create_autocmd('FileType', {
vim.keymap.set('i', '<S-Enter>', '<Enter>', { buffer = true, desc = 'Use shift enter to start a new line' }) vim.keymap.set('i', '<S-Enter>', '<Enter>', { buffer = true, desc = 'Use shift enter to start a new line' })
vim.keymap.set('n', '<Enter>', 'G', { buffer = true, desc = 'Use enter in normal mode to go to the end of the chat' }) vim.keymap.set('n', '<Enter>', '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 -- Loop through models and create keymaps for each
for i, model in ipairs(models) do for i, model in ipairs(models) do
vim.keymap.set('n', '<C-' .. i .. '>', 'mzggj0WC' .. model .. '<Esc>`z', { buffer = true, desc = 'Switch to ' .. model }) vim.keymap.set('n', '<C-' .. i .. '>', 'mzggj0WC' .. model .. '<Esc>`z', { buffer = true, desc = 'Switch to ' .. model })

View File

@@ -73,7 +73,7 @@ return {
function() function()
require('dapui').toggle() require('dapui').toggle()
end, end,
desc = 'Debug: See last session result.', desc = 'Debug: Toggle UI',
}, },
}, },
config = function() config = function()
@@ -147,15 +147,15 @@ return {
icons = { expanded = '', collapsed = '', current_frame = '*' }, icons = { expanded = '', collapsed = '', current_frame = '*' },
controls = { controls = {
icons = { icons = {
pause = '', pause = '',
play = '', play = '',
step_into = '', step_into = '󰆹',
step_over = '', step_over = '󰆷',
step_out = '', step_out = '󰆸',
step_back = 'b', step_back = '',
run_last = '▶▶', run_last = '',
terminate = '', terminate = '',
disconnect = '', disconnect = '',
}, },
}, },
} }

View File

@@ -242,12 +242,20 @@ return {
}, },
}, },
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }, filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
capabilities = {
documentFormattingProvider = true,
documentRangeFormattingProvider = true,
},
}, },
volar = { volar = {
on_attach = function(client, bufnr) on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false client.server_capabilities.documentFormattingProvider = false
end, end,
capabilities = {
documentFormattingProvider = true,
documentRangeFormattingProvider = true,
},
}, },
phpactor = { phpactor = {