Upgrade config

This commit is contained in:
Chris
2025-05-02 20:58:31 +01:00
parent 17e642dcd3
commit 6dfef7bd87
7 changed files with 124 additions and 38 deletions

View File

@@ -74,11 +74,6 @@ return {
callback = require('vectorcode.integrations').codecompanion.chat.make_tool(),
},
},
keymaps = {
send = {
modes = { i = '<Enter>' },
},
},
},
inline = {
adapter = 'flash',

View File

@@ -87,7 +87,28 @@ return {
-- You can provide additional configuration to the handlers,
-- see mason-nvim-dap README for more information
handlers = {},
handlers = {
function(config)
require('mason-nvim-dap').default_setup(config)
end,
php = function(config)
config.configurations = {
{
type = 'php',
request = 'launch',
name = 'Listen for XDebug',
port = 9003,
log = true,
-- pathMappings = {
-- ['/var/www/html/'] = vim.fn.getcwd() .. '/',
-- },
hostname = '0.0.0.0',
},
}
require('mason-nvim-dap').default_setup(config)
end,
},
-- You'll need to check that you have the required things installed
-- online, please don't ask me how to install them :)
@@ -110,9 +131,9 @@ return {
name = 'Listen for XDebug',
port = 9003,
log = true,
pathMappings = {
['/var/www/html/'] = vim.fn.getcwd() .. '/',
},
-- pathMappings = {
-- ['/var/www/html/'] = vim.fn.getcwd() .. '/',
-- },
hostname = '0.0.0.0',
},
}

View File

@@ -236,6 +236,10 @@ return {
languages = { 'vue' },
},
},
preferences = {
importModuleSpecifierEnding = 'js',
importModuleSpecifierPreference = 'project-relative',
},
},
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
},
@@ -250,6 +254,12 @@ return {
on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false
end,
init_options = {
['language_server_phpstan.enabled'] = false,
['language_server_psalm.enabled'] = false,
['language_server_php_cs_fixer.enabled'] = true,
['language_server_php_cs_fixer.bin'] = '~/.composer/vendor/bin/php-cs-fixer',
},
},
}

View File

@@ -1,3 +1,4 @@
require('helpers').edit_cf('pt', '/lua/plugins/neotest.lua')
return {
'nvim-neotest/neotest',
lazy = true,