update
This commit is contained in:
parent
f3c1524c2d
commit
3afa9900ce
9 changed files with 63 additions and 33 deletions
1
.php-cs-fixer.cache
Normal file
1
.php-cs-fixer.cache
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{"php":"8.1.16","version":"3.14.4","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_import_per_statement":{"group_to_single_imports":false},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"config\/.null-ls_409243_php-cs-fixer-conf.php":"fb71792ed72df5b2976115b4380ef622","config\/.null-ls_800261_php-cs-fixer-conf.php":"1a554594a4eaa31e7bf231c0a93ad00e","config\/.null-ls_450233_php-cs-fixer-conf.php":"1a554594a4eaa31e7bf231c0a93ad00e","config\/.null-ls_536351_php-cs-fixer-conf.php":"5bfcd97c4bfff433fa6da9d289fd7ef9","config\/.null-ls_121074_php-cs-fixer-conf.php":"c116993e570fd1fd0d8e5ff29103a452"}}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
return {
|
return {
|
||||||
-- ["/nvim-neo-tree/neo-tree.nvim"] = { disable = true },
|
["/nvim-neo-tree/neo-tree.nvim"] = { disable = true },
|
||||||
["rcarriga/nvim-notify"] = { disable = true },
|
["rcarriga/nvim-notify"] = { disable = true },
|
||||||
--
|
--
|
||||||
["catppuccin/nvim"] = {
|
["catppuccin/nvim"] = {
|
||||||
|
|
@ -18,11 +18,11 @@ return {
|
||||||
require("user.plugins.project")
|
require("user.plugins.project")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- ["kyazdani42/nvim-tree.lua"] = {
|
["kyazdani42/nvim-tree.lua"] = {
|
||||||
-- config = function()
|
config = function()
|
||||||
-- require("user.plugins.nvim-tree")
|
require("user.plugins.nvim-tree")
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
["kylechui/nvim-surround"] = {
|
["kylechui/nvim-surround"] = {
|
||||||
tag = "*", -- Use for stability; omit to use `main` branch for the latest features
|
tag = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||||
config = function()
|
config = function()
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ return {
|
||||||
},
|
},
|
||||||
window = {
|
window = {
|
||||||
width = 30,
|
width = 30,
|
||||||
|
auto_expand_width = true,
|
||||||
mappings = {
|
mappings = {
|
||||||
["<2-LeftMouse>"] = "open_with_window_picker",
|
["<2-LeftMouse>"] = "open_with_window_picker",
|
||||||
["<cr>"] = "open_with_window_picker",
|
["<cr>"] = "open_with_window_picker",
|
||||||
|
|
@ -88,10 +89,10 @@ return {
|
||||||
renderers = {
|
renderers = {
|
||||||
file = {
|
file = {
|
||||||
{ "icon" },
|
{ "icon" },
|
||||||
{ "name", use_git_status_colors = true },
|
{ "name", use_git_status_colors = true },
|
||||||
{ "harpoon_index" }, --> This is what actually adds the component in where you want it
|
{ "harpoon_index" }, --> This is what actually adds the component in where you want it
|
||||||
{ "diagnostics" },
|
{ "diagnostics" },
|
||||||
{ "git_status", highlight = "NeoTreeDimText" },
|
{ "git_status", highlight = "NeoTreeDimText" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
window = {
|
window = {
|
||||||
|
|
@ -129,6 +130,8 @@ return {
|
||||||
if vim.bo.filetype == "neo-tree" then
|
if vim.bo.filetype == "neo-tree" then
|
||||||
vim.wo.signcolumn = "auto"
|
vim.wo.signcolumn = "auto"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.cmd("highlight! Cursor blend=100")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,13 @@ return function(config)
|
||||||
null_ls.builtins.formatting.prettierd.with({
|
null_ls.builtins.formatting.prettierd.with({
|
||||||
disabled_filetypes = { "markdown" },
|
disabled_filetypes = { "markdown" },
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
null_ls.builtins.formatting.phpcsfixer.with({
|
||||||
|
extra_args = {
|
||||||
|
"--config",
|
||||||
|
"$HOME/.config/php-cs-fixer-conf.php",
|
||||||
|
},
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
end
|
end
|
||||||
|
|
|
||||||
7
config/git/gitconfig
Normal file
7
config/git/gitconfig
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[user]
|
||||||
|
email = ale.navarro.parra@gmail.com
|
||||||
|
user = Alexander Navarro
|
||||||
|
[pull]
|
||||||
|
rebase = false
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
6
config/git/gitignore
Normal file
6
config/git/gitignore
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
# Package manager locks
|
||||||
|
*.lock
|
||||||
|
|
||||||
|
# PHP Stuff
|
||||||
|
vendor
|
||||||
|
.php-cs-fixer.cache
|
||||||
5
config/php-cs-fixer-conf.php
Normal file
5
config/php-cs-fixer-conf.php
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$config = new PhpCsFixer\Config();
|
||||||
|
return $config
|
||||||
|
->setIndent(" ");
|
||||||
|
|
@ -1,43 +1,43 @@
|
||||||
# SSH tunnel
|
# SSH tunnel
|
||||||
ssh-tunnel() {
|
ssh-tunnel() {
|
||||||
|
|
||||||
local_port=$1 && shift
|
local_port=$1 && shift
|
||||||
remote_port=$1 && shift
|
remote_port=$1 && shift
|
||||||
server=$1 && shift
|
server=$1 && shift
|
||||||
|
|
||||||
echo "Starting SSH Tunnel for $server"
|
echo "Starting SSH Tunnel for $server"
|
||||||
|
|
||||||
ssh -N -L "$local_port":localhost:"$remote_port" "$server"
|
ssh -N -L "$local_port":localhost:"$remote_port" "$server"
|
||||||
}
|
}
|
||||||
|
|
||||||
# quick wordpress in docker
|
# quick wordpress in docker
|
||||||
dwps() {
|
dwps() {
|
||||||
image_name="wordpress-development"
|
image_name="wordpress-development"
|
||||||
container_build_path="$HOME/Private-repos/docker-development-services/wordpress"
|
container_build_path="$HOME/Repos/Private/docker-services/wordpress"
|
||||||
original_path="$PWD"
|
original_path="$PWD"
|
||||||
|
|
||||||
if [[ "$(docker images -q $image_name 2> /dev/null)" == "" ]] ; then
|
if [[ "$(docker images -q $image_name 2> /dev/null)" == "" ]] ; then
|
||||||
cd "$container_build_path"
|
cd "$container_build_path"
|
||||||
docker build --tag "$image_name" .
|
docker build --tag "$image_name" .
|
||||||
cd "$original_path"
|
cd "$original_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker run -d --rm -p 3000:80 --user 1000:1000 -v "$PWD":/var/www/html --name "$image_name" "$image_name"
|
docker run -d --rm -p 3000:80 --user 1000:1000 -v "$PWD":/var/www/html --name "$image_name" "$image_name"
|
||||||
}
|
}
|
||||||
|
|
||||||
## Create python venv
|
## Create python venv
|
||||||
pvenv() {
|
pvenv() {
|
||||||
[[ -n $VIRTAUL_ENV ]] && echo "Virtual enviroment already sourced" && return
|
[[ -n $VIRTAUL_ENV ]] && echo "Virtual enviroment already sourced" && return
|
||||||
|
|
||||||
dir=${1:-venv}
|
dir=${1:-venv}
|
||||||
|
|
||||||
[[ ! -d $dir ]] && echo "Creating virtual enviroment..." && python -m venv $dir
|
[[ ! -d $dir ]] && echo "Creating virtual enviroment..." && python -m venv $dir
|
||||||
|
|
||||||
source "$dir/bin/activate"
|
source "$dir/bin/activate"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Print bottlenecks
|
# Print bottlenecks
|
||||||
profzsh() {
|
profzsh() {
|
||||||
shell=${1-$SHELL}
|
shell=${1-$SHELL}
|
||||||
ZPROF=true $shell -i -c exit
|
ZPROF=true $shell -i -c exit
|
||||||
}
|
}
|
||||||
|
|
|
||||||
11
setup/config
11
setup/config
|
|
@ -6,14 +6,15 @@ original_pwd="$(pwd)"
|
||||||
cd "$DOTS/config" || exit
|
cd "$DOTS/config" || exit
|
||||||
|
|
||||||
readarray -t configs < <(
|
readarray -t configs < <(
|
||||||
fd -d 1 \
|
fd -d 1 \
|
||||||
--exclude "*.old" \
|
--exclude "*.old" \
|
||||||
--exclude "create*" \
|
--exclude "create*" \
|
||||||
--exclude "tmux"
|
--exclude "tmux" \
|
||||||
|
--exclude "git"
|
||||||
)
|
)
|
||||||
|
|
||||||
for dot in "${configs[@]}"; do
|
for dot in "${configs[@]}"; do
|
||||||
symlink "$(pwd)/$dot" "${CONFIG}"
|
symlink "$(pwd)/$dot" "${CONFIG}"
|
||||||
done
|
done
|
||||||
|
|
||||||
cd "$original_pwd" || exit
|
cd "$original_pwd" || exit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue