Last active
February 19, 2024 15:59
-
-
Save sebcode/0086609b2bf8c46fe96194ff3f394ecf to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "Hello World!"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl --output composer.phar https://getcomposer.org/composer.phar | |
chmod +x composer.phar | |
./composer.phar install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require-dev": { | |
"vimeo/psalm": "^5.22" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim.cmd [[set runtimepath=$VIMRUNTIME]] | |
vim.cmd [[set packpath=/tmp/nvim-repro-min/site]] | |
local package_root = "/tmp/nvim-repro-min/site/pack" | |
local install_path = package_root .. "/packer/start/packer.nvim" | |
local function load_plugins() | |
require("packer").startup { | |
{ | |
"wbthomason/packer.nvim", | |
"neovim/nvim-lspconfig", | |
"j-hui/fidget.nvim", | |
}, | |
config = { | |
package_root = package_root, | |
compile_path = install_path .. "/plugin/packer_compiled.lua", | |
display = { non_interactive = true }, | |
}, | |
} | |
end | |
if vim.fn.isdirectory(install_path) == 0 then | |
print "Installing dependencies." | |
vim.fn.system { "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path } | |
end | |
load_plugins() | |
require("packer").sync() | |
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua setup()]] | |
vim.opt.termguicolors = true | |
vim.opt.cursorline = true | |
_G.setup = function() | |
require("fidget").setup { | |
progress = { | |
lsp = { | |
log_handler = true | |
} | |
}, | |
logger = { | |
level = vim.log.levels.DEBUG, | |
path = "/tmp/fidget.nvim.log", | |
} | |
} | |
vim.lsp.set_log_level('debug') | |
local nvim_lsp = require("lspconfig") | |
nvim_lsp.tsserver.setup {} | |
nvim_lsp.psalm.setup { | |
cmd = { "./vendor/bin/psalm-language-server" }, | |
filetypes = { "php" }, | |
} | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<psalm | |
errorLevel="4" | |
phpVersion="8.3" | |
resolveFromConfigFile="true" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="https://getpsalm.org/schema/config" | |
xsi:schemaLocation="https://getpsalm.org/schema/config tools/psalm/vendor/vimeo/psalm/config.xsd" | |
allowStringToStandInForClass="true" | |
findUnusedCode="false" | |
findUnusedBaselineEntry="true" | |
> | |
<projectFiles> | |
<directory name="."/> | |
</projectFiles> | |
</psalm> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment