initial commit
This commit is contained in:
commit
9784dfe498
12 changed files with 329 additions and 0 deletions
34
lua/lspconf/php.lua
Normal file
34
lua/lspconf/php.lua
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
local lspconfig = require 'lspconfig'
|
||||
local configs = require 'lspconfig.configs'
|
||||
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
|
||||
if not configs.intelephense then
|
||||
configs.intelephense = {
|
||||
default_config = {
|
||||
cmd = { 'intelephense', '--stdio' };
|
||||
filetypes = { 'php' };
|
||||
root_dir = function(fname)
|
||||
return vim.loop.cwd()
|
||||
end;
|
||||
settings = {
|
||||
intelephense = {
|
||||
files = {
|
||||
maxSize = 1000000;
|
||||
};
|
||||
environment = {
|
||||
includePaths = {
|
||||
"/home/serii/Sites/wordpress",
|
||||
"/home/serii/Sites/advanced-custom-fields-pro",
|
||||
"/home/serii/Sites/woocommerce"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
lspconfig.intelephense.setup { capabilities = capabilities }
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue