aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-09-05 15:35:27 +0200
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-09-05 15:35:27 +0200
commit75c19f44876bc6833ecd5ccb0d715cab8d70416b (patch)
treecb6fcec87d183fb704c9531f74d9ba9e936eea3a /lua/plugins
parentc46d110c48172b0e9ae0ac9cb9c38a5124d0236c (diff)
downloadnvim-conf-75c19f44876bc6833ecd5ccb0d715cab8d70416b.tar.gz
nvim-conf-75c19f44876bc6833ecd5ccb0d715cab8d70416b.zip
updates
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/duck.lua12
-rw-r--r--lua/plugins/laravel.lua22
-rw-r--r--lua/plugins/treesitter.lua9
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",
+ },
+ },
},
}