mirror of
https://github.com/pnx/dotfiles
synced 2026-06-25 19:33:41 +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')
|
local icons = require('user.icons')
|
||||||
|
|
||||||
return {
|
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
|
-- Testing integration
|
||||||
{
|
{
|
||||||
"nvim-neotest/neotest",
|
"nvim-neotest/neotest",
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
local lspservers = {
|
local lspservers = {
|
||||||
phpactor = {
|
-- phpactor = {
|
||||||
inlay_hints = {
|
-- inlay_hints = {
|
||||||
enabled = false
|
-- enabled = false
|
||||||
}
|
-- }
|
||||||
},
|
-- },
|
||||||
|
intelephense = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
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
|
-- LSP
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ set -g escape-time 10
|
||||||
set -g focus-events on
|
set -g focus-events on
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
set -s set-clipboard external
|
set -s set-clipboard external
|
||||||
set -s copy-command 'wl-copy -p -f'
|
|
||||||
|
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
setw -g pane-base-index 1
|
setw -g pane-base-index 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue