Skip to content
Merged

V2 #57

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
38bc76f
Refactor base code
adalessa Sep 20, 2023
bb5b4ff
prevent error depending on loading
adalessa Sep 25, 2023
090f266
fix styles
adalessa Sep 25, 2023
b972ca0
add tests and fix argument pass to command
adalessa Oct 2, 2023
b226146
Support skip args as command option
adalessa Oct 6, 2023
37aaba7
Skip the setup if the artisan file is not present
adalessa Oct 9, 2023
f1df126
Add devenv
adalessa Oct 10, 2023
2656bb1
clean test
adalessa Oct 10, 2023
8547706
Format and clean
adalessa Oct 10, 2023
3185bc9
Small updates
adalessa Oct 22, 2023
9ab67e8
Add status
adalessa Oct 26, 2023
c18b274
Add cache for getting status
adalessa Oct 26, 2023
e5b7ffc
Save the value in the cache
adalessa Oct 26, 2023
cc4f2f0
Update the tests
adalessa Oct 29, 2023
6c239cd
feat: Implement api
adalessa Nov 3, 2023
d6c67e6
feat: use terminal to run commands
adalessa Nov 5, 2023
80617a9
feat: implement command history
adalessa Nov 5, 2023
ee6e91e
feat: remove bind_telescope
adalessa Nov 5, 2023
b9d8f90
fix: proper display error when routes are broken
adalessa Nov 5, 2023
b1eeda5
feat: support view completition
adalessa Nov 5, 2023
23b09ca
fix: change to single quotes
adalessa Nov 5, 2023
9cdb84a
fix: route info reading options
adalessa Nov 6, 2023
e56f73a
feat: use system call for fd instead of sync runner
adalessa Nov 14, 2023
5db249e
feat: support default options per command
adalessa Nov 17, 2023
cfaa291
feat: support create cli when empty for require parameter
adalessa Nov 17, 2023
1a57661
feat: completion add support for routes
adalessa Nov 17, 2023
eb1d184
feat: add checkhealth
adalessa Nov 18, 2023
fa2165c
feat: check doctrine dbal before running
adalessa Nov 18, 2023
7cb289b
fix: update the way of checking route list
adalessa Nov 18, 2023
eb17a8b
fix: load the route list if empty on completion
adalessa Nov 18, 2023
b5d919a
fix: silent fail if load does not work
adalessa Nov 18, 2023
6834511
fix: how routes are check in completion and update how verions are re…
adalessa Nov 18, 2023
a1fc6b3
feature: support quotes for completion
adalessa Nov 18, 2023
d0531fe
feat: support model properties completion
adalessa Nov 18, 2023
e3096fe
update todo
adalessa Nov 19, 2023
e11ca25
feat: expose generate command, remove model completion
adalessa Nov 19, 2023
3959cbf
feat: show action name in telescope help
adalessa Nov 24, 2023
ccce12e
feat: add doc file
adalessa Nov 25, 2023
7091842
feat: improve healt, add support for make:view
adalessa Dec 15, 2023
d4a5eaa
feat: introduce laravel recipes
adalessa Dec 26, 2023
0fbb4d9
fix: calls with nil
adalessa Dec 26, 2023
fb108aa
feat: add watch
adalessa Dec 26, 2023
975fa4d
feat: support go to view from file
adalessa Dec 26, 2023
f4968b7
feat: view_finder
adalessa Dec 27, 2023
c5e0071
feat: add command to laravel
adalessa Dec 27, 2023
dd2abe7
feat: add cache for command in paths
adalessa Dec 27, 2023
76b677c
feat: add doctrine-dbal recipe
adalessa Dec 27, 2023
1a87702
fix: remove unused script
adalessa Dec 27, 2023
4fd5428
feat: remove notify function
adalessa Dec 27, 2023
a251ca3
feat: rework environment
adalessa Dec 28, 2023
174374a
fix: get of the status
adalessa Dec 28, 2023
51f8a03
fix: status commands and use of error function
adalessa Dec 28, 2023
b2ba0a6
fix: use async for getting the status values
adalessa Dec 28, 2023
60d73f9
feature: add dinamicaly the sail and docker compose commands to larav…
adalessa Dec 28, 2023
6c4f881
feat: improve readme
adalessa Dec 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_url "https://raw.githubusercontent.com/cachix/devenv/d1f7b48e35e6dee421cfd0f51481d17f77586997/direnvrc" "sha256-YBzqskFZxmNb3kYVoKD9ZixoPXJh1C9ZvTLGFRkauZ0="

use devenv
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/.tests

# Devenv
.devenv*
devenv.local.nix

# direnv
.direnv

# pre-commit
.pre-commit-config.yaml

15 changes: 15 additions & 0 deletions .neoconf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"neodev": {
"library": {
"plugins": [
"plenary.nvim"
]
}
},
"lspconfig": {
"lua_ls": {
"Lua.runtime.version": "LuaJIT",
"Lua.workspace.checkThirdParty": false
}
}
}
299 changes: 73 additions & 226 deletions README.md

Large diffs are not rendered by default.

32 changes: 29 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Ideas

Con telescope mostrar la lista de rutas y al seleccionar, llegar al controllador y al metodo

- source: artisan list
## To implement
- [X] implement api
- [X] implement ui
- [X] implements a command history
- [X] remove bind telescope
- [X] Fix error when route list breaks it slows the heck out of the editor
- [X] order of arguments running command from telescope
- [X] completion for none-ls view('<"">') get all *.balde.php files.
- [X] implement default args | implement as options on the command options
- [X] escape on required args cancel it
- [X] when calling make commands without arguments run it in a popup
- [X] fix bug with `fd` switch from `sync` to proper use
- [X] How to implement checkhealth
- [X] completion route
- [X] detect library use by model show (command -precheck- on picker)
- [X] completion for routes when broken not loading to many making slow the editor
- [X] change the way of versions are being poll
- [X] maybe command for make only where only list commands of make principal laravel ones and open in a popup or how to configure from the command pallete
- [X] completion detect or not quotes
- [X] completion for model fields
- [X] remove completion for models
- [X] replace anonymous function from mapping with dedicated functions to have descriptions
- [X] using the get_type in completion is dangerus. better to replace it with ide-helper
- [X] recipes for ide-helper models and eloquent
- [X] implement watch
- [X] implement alternate file for livewire components `:A`
- [X] extend api .sync and .async with better respons object. maybe create a new object with method for example `.successful()` and `.failed()`
- [X] rework environment
- [X] re-write the readme and translate (not forget fd as dependency) move all info from readme to doc
156 changes: 156 additions & 0 deletions devenv.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
{
"nodes": {
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1696609182,
"narHash": "sha256-PzVHnPnm+aceuQOoE3oExjHSxiLFAEiHFyQb3xXCI1c=",
"owner": "cachix",
"repo": "devenv",
"rev": "bd859ef4b207c2071f5bd3cae2a74f4d3e69c2e2",
"type": "github"
},
"original": {
"dir": "src/modules",
"owner": "cachix",
"repo": "devenv",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1685518550,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"gitignore": {
"inputs": {
"nixpkgs": [
"pre-commit-hooks",
"nixpkgs"
]
},
"locked": {
"lastModified": 1660459072,
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1696757521,
"narHash": "sha256-cfgtLNCBLFx2qOzRLI6DHfqTdfWI+UbvsKYa3b3fvaA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2646b294a146df2781b1ca49092450e8a32814e1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1685801374,
"narHash": "sha256-otaSUoFEMM+LjBI1XL/xGB5ao6IwnZOXc47qhIgJe8U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c37ca420157f4abc31e26f436c1145f8951ff373",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat",
"flake-utils": "flake-utils",
"gitignore": "gitignore",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1696846637,
"narHash": "sha256-0hv4kbXxci2+pxhuXlVgftj/Jq79VSmtAyvfabCCtYk=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "42e1b6095ef80a51f79595d9951eb38e91c4e6ca",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"type": "github"
}
},
"root": {
"inputs": {
"devenv": "devenv",
"nixpkgs": "nixpkgs",
"pre-commit-hooks": "pre-commit-hooks"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
25 changes: 25 additions & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ pkgs, ... }:

{
# https://devenv.sh/basics/
env.GREET = "devenv";

# https://devenv.sh/packages/
packages = [ pkgs.git ];

enterShell = ''
git --version
'';

# https://devenv.sh/languages/
# languages.nix.enable = true;

# https://devenv.sh/pre-commit-hooks/
pre-commit.hooks.luacheck.enable = true;
pre-commit.hooks.stylua.enable = true;

# https://devenv.sh/processes/
# processes.ping.exec = "ping example.com";

# See full reference at https://devenv.sh/reference/options/
}
3 changes: 3 additions & 0 deletions devenv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
inputs:
nixpkgs:
url: github:NixOS/nixpkgs/nixpkgs-unstable
9 changes: 9 additions & 0 deletions doc/laravel.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*laravel.txt* Plugin to work with Laravel Framework

Author: Ariel D'Alessandro
Repo: https://github.com/adalessa/laravel.nvim
License: Same terms as Vim itself (see |license|)

Usage *laravel* *:Artisan*

vim:tw=78:et:ft=help:norl:
3 changes: 3 additions & 0 deletions doc/tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:Artisan laravel.txt /*:Artisan*
laravel laravel.txt /*laravel*
laravel.txt laravel.txt /*laravel.txt*
4 changes: 0 additions & 4 deletions lua/.luarc.json

This file was deleted.

15 changes: 0 additions & 15 deletions lua/laravel/_autocommands.lua

This file was deleted.

90 changes: 0 additions & 90 deletions lua/laravel/_config.lua

This file was deleted.

Loading