Mathias Arlaud
Co-Founder & COO @Bakslash - Co-Founder & CTO @Synegram
un IDE open source
@florianm__
@matarld
@florianm__
@matarld
if (isset($_POST["x"])) {
exec("killall -s 15 vim");
exec("killall -9 vim;reset");
echo "<span id='x'>Done!</span>";
return;
}
echo "<form action='#' method='POST'>
<button type='submit' name='x' id='x'>
KILL
</button>
</form>";
$ php -S 0.0.0.0:1234&disown
$ firefox --new-window 0.0.0.0:1234&disown
@florianm__
@matarld
Normal - Visual - Edition
@florianm__
@matarld
ZZ - ZQ - :q - :x
@florianm__
@matarld
@florianm__
@matarld
@florianm__
@matarld
@matarld
mtarld
les-tilleuls.coop
@florianm__
Florian-Merle
AKAWAKA
@florianm__
@matarld
@florianm__
@matarld
@florianm__
@matarld
-- ~/.config/nvim/lua/custom/plugins.lua
return {
["anuvyklack/windows.nvim"] = {
cmd = { "WindowsMaximize" },
config = function()
-- ...
end
},
}
-- ~/.config/nvim/lua/custom/mappings.lua
return {
ide = {
n = {
["<leader>wm"] = {
function()
vim.cmd("WindowsMaximize")
end,
"maximize current windows",
},
},
},
}
@florianm__
@matarld
@florianm__
@matarld
-- ~/.config/nvim/lua/custom/plugins/php-cs-fixer.lua
local M = {}
local function find_config_path()
-- will search in project dir, project tools dir and default config
end
M.format = function()
local config_path = find_config_path()
local buffer = get_root_path() .. "/" .. vim.fn.expand("%")
local command = "php-cs-fixer fix " .. buffer .. " --quiet --config=" .. config_path
vim.cmd("silent! !" .. command)
vim.cmd("silent! e")
end
return M
@florianm__
@matarld
-- ~/.config/nvim/lua/custom/mappings.lua
return {
php = {
n = {
["<leader>fm"] = {
function()
require("custom.plugins.php-cs-fixer").format()
end,
"format file",
},
},
},
}
@florianm__
@matarld
@florianm__
@matarld
@florianm__
@matarld
-- ~/.config/nvim/lua/custom/plugins/lspconfig.lua
local attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
lspconfig.phpactor.setup {
on_attach = attach,
capabilities = capabilities,
flags = {
debounce_text_changes = 150,
},
}
@florianm__
@matarld
@florianm__
@matarld
@florianm__
@matarld
@florianm__
@matarld
empty_array_as_object => foo_array_as_object
EMPTY_ARRAY_AS_OBJECT => FOO_ARRAY_AS_OBJECT
Empty_array_as_object => Foo_array_as_object
@florianm__
@matarld
-- ~/.config/nvim/lua/custom/mappings.lua
return {
M.git = {
n = {
["<leader>gc"] = {
function()
vim.ui.input(
{ prompt = 'Compare with (master): ' },
function(input)
local branch = input or "master"
vim.cmd("Gvsplit " .. branch .. ":%")
end)
end,
"compare with",
},
},
},
}
@florianm__
@matarld
@florianm__
@matarld
@florianm__
@matarld
@florianm__
@matarld
@florianm__
@matarld
@florianm__
@matarld
@florianm__
@matarld
By Mathias Arlaud