diff options
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/duck.lua | 12 | ||||
| -rw-r--r-- | lua/plugins/laravel.lua | 22 | ||||
| -rw-r--r-- | lua/plugins/treesitter.lua | 9 |
3 files changed, 37 insertions, 6 deletions
diff --git a/lua/plugins/duck.lua b/lua/plugins/duck.lua new file mode 100644 index 0000000..a8ff8c1 --- /dev/null +++ b/lua/plugins/duck.lua @@ -0,0 +1,12 @@ +return { + "tamton-aquib/duck.nvim", + keys = { + { + "<leader>hh", + function() + require("duck").hatch("🦖", 10) + end, + { desc = "Spawn dinasours" }, + }, + }, +} diff --git a/lua/plugins/laravel.lua b/lua/plugins/laravel.lua index 72f8c3e..7defe18 100644 --- a/lua/plugins/laravel.lua +++ b/lua/plugins/laravel.lua @@ -18,18 +18,28 @@ return { desc = "Laravel Application Routes", }, }, - config = function() + init = function() vim.g.laravel_log_level = "debug" - require("laravel").setup({ + end, + config = function() + local uid = vim.system({ "id", "-u" }, { text = true }):wait().stdout or "1000" + local gid = vim.system({ "id", "-g" }, { text = true }):wait().stdout or "1000" + + local user_arg = string.format("%s:%s", vim.trim(uid), vim.trim(gid)) + + require("laravel").setup { route_info = { position = "top", }, environment = { environments = { - ["ao"] = require("laravel.environment.docker_compose").setup({container_name = "panel-webserver"}), - } - } - }) + ["ao"] = require("laravel.environment.docker_compose").setup { + container_name = "panel-webserver", + cmd = { "docker", "compose", "exec", "-u", user_arg, "-it", "panel-webserver" }, + }, + }, + }, + } require("telescope").load_extension "laravel" end, } diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 35db83a..996b881 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -53,5 +53,14 @@ return { }, }, }, + incremental_selection = { + enable = true, + keymaps = { + init_selection = "gnn", + node_incremental = "grn", + scope_incremental = "grc", + node_decremental = "grm", + }, + }, }, } |