This commit is contained in:
Alexander Navarro 2023-03-06 19:57:24 -03:00
parent f3c1524c2d
commit 3afa9900ce
9 changed files with 63 additions and 33 deletions

View file

@ -1,5 +1,5 @@
return {
-- ["/nvim-neo-tree/neo-tree.nvim"] = { disable = true },
["/nvim-neo-tree/neo-tree.nvim"] = { disable = true },
["rcarriga/nvim-notify"] = { disable = true },
--
["catppuccin/nvim"] = {
@ -18,11 +18,11 @@ return {
require("user.plugins.project")
end,
},
-- ["kyazdani42/nvim-tree.lua"] = {
-- config = function()
-- require("user.plugins.nvim-tree")
-- end,
-- },
["kyazdani42/nvim-tree.lua"] = {
config = function()
require("user.plugins.nvim-tree")
end,
},
["kylechui/nvim-surround"] = {
tag = "*", -- Use for stability; omit to use `main` branch for the latest features
config = function()

View file

@ -23,6 +23,7 @@ return {
},
window = {
width = 30,
auto_expand_width = true,
mappings = {
["<2-LeftMouse>"] = "open_with_window_picker",
["<cr>"] = "open_with_window_picker",
@ -88,10 +89,10 @@ return {
renderers = {
file = {
{ "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
{ "diagnostics" },
{ "git_status", highlight = "NeoTreeDimText" },
{ "git_status", highlight = "NeoTreeDimText" },
},
},
window = {
@ -129,6 +130,8 @@ return {
if vim.bo.filetype == "neo-tree" then
vim.wo.signcolumn = "auto"
end
vim.cmd("highlight! Cursor blend=100")
end,
},
{

View file

@ -4,6 +4,13 @@ return function(config)
null_ls.builtins.formatting.prettierd.with({
disabled_filetypes = { "markdown" },
}),
null_ls.builtins.formatting.phpcsfixer.with({
extra_args = {
"--config",
"$HOME/.config/php-cs-fixer-conf.php",
},
}),
}
return config
end

7
config/git/gitconfig Normal file
View 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
View file

@ -0,0 +1,6 @@
# Package manager locks
*.lock
# PHP Stuff
vendor
.php-cs-fixer.cache

View file

@ -0,0 +1,5 @@
<?php
$config = new PhpCsFixer\Config();
return $config
->setIndent(" ");

View file

@ -1,43 +1,43 @@
# SSH tunnel
ssh-tunnel() {
local_port=$1 && shift
remote_port=$1 && shift
server=$1 && shift
local_port=$1 && shift
remote_port=$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
dwps() {
image_name="wordpress-development"
container_build_path="$HOME/Private-repos/docker-development-services/wordpress"
original_path="$PWD"
image_name="wordpress-development"
container_build_path="$HOME/Repos/Private/docker-services/wordpress"
original_path="$PWD"
if [[ "$(docker images -q $image_name 2> /dev/null)" == "" ]] ; then
cd "$container_build_path"
docker build --tag "$image_name" .
cd "$original_path"
fi
if [[ "$(docker images -q $image_name 2> /dev/null)" == "" ]] ; then
cd "$container_build_path"
docker build --tag "$image_name" .
cd "$original_path"
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
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
profzsh() {
shell=${1-$SHELL}
ZPROF=true $shell -i -c exit
shell=${1-$SHELL}
ZPROF=true $shell -i -c exit
}