mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: new php config
This commit is contained in:
parent
e14fbda089
commit
1acff15791
3 changed files with 37 additions and 6 deletions
|
|
@ -1,6 +1,22 @@
|
|||
local icons = require('user.icons')
|
||||
|
||||
return {
|
||||
-- Linting
|
||||
{
|
||||
'mfussenegger/nvim-lint',
|
||||
opts = {
|
||||
linters_by_ft = {},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require('lint').linters_by_ft = opts.linters_by_ft
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
-- Testing integration
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
local lspservers = {
|
||||
phpactor = {
|
||||
inlay_hints = {
|
||||
enabled = false
|
||||
}
|
||||
},
|
||||
-- phpactor = {
|
||||
-- inlay_hints = {
|
||||
-- enabled = false
|
||||
-- }
|
||||
-- },
|
||||
intelephense = {}
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
@ -35,6 +36,21 @@ return {
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'phpactor/phpactor',
|
||||
build = 'composer install --no-dev --optimize-autoloader',
|
||||
ft = 'php',
|
||||
},
|
||||
-- Linting
|
||||
{
|
||||
'mfussenegger/nvim-lint',
|
||||
optional = true,
|
||||
opts = {
|
||||
linters_by_ft = {
|
||||
php = { 'phpstan' },
|
||||
},
|
||||
},
|
||||
},
|
||||
-- LSP
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ set -g escape-time 10
|
|||
set -g focus-events on
|
||||
set -g mouse on
|
||||
set -s set-clipboard external
|
||||
set -s copy-command 'wl-copy -p -f'
|
||||
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue