aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-04-04 00:15:10 +0200
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-04-04 00:15:10 +0200
commitcf9605f7a01ef90050df2f5aafa3b89db492604f (patch)
treee008cae4c33969f78e6febd914676f2b5ed57272 /lua/plugins
parent0cde83cfa15c5c0b8d117c34a8bfae38b4dec39c (diff)
downloadnvim-conf-cf9605f7a01ef90050df2f5aafa3b89db492604f.tar.gz
nvim-conf-cf9605f7a01ef90050df2f5aafa3b89db492604f.zip
feat(impro) add plugins and configs
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/deadcolumn.lua4
-rw-r--r--lua/plugins/harpoon.lua64
-rw-r--r--lua/plugins/laravel.lua1
-rw-r--r--lua/plugins/smart-splits.lua30
4 files changed, 94 insertions, 5 deletions
diff --git a/lua/plugins/deadcolumn.lua b/lua/plugins/deadcolumn.lua
new file mode 100644
index 0000000..4aa9d87
--- /dev/null
+++ b/lua/plugins/deadcolumn.lua
@@ -0,0 +1,4 @@
+return {
+ "Bekaboo/deadcolumn.nvim",
+ event = { "VeryLazy" },
+}
diff --git a/lua/plugins/harpoon.lua b/lua/plugins/harpoon.lua
index d8a4b70..06ec2aa 100644
--- a/lua/plugins/harpoon.lua
+++ b/lua/plugins/harpoon.lua
@@ -1,11 +1,67 @@
+local keys = {}
+local terms = 3
+local binds = 5
+
+table.insert(keys, {
+ "<leader>ss",
+ function()
+ require("harpoon.ui").toggle_quick_menu()
+ end,
+})
+
+table.insert(keys, {
+ "<leader>sa",
+ function()
+ require("harpoon.mark").add_file()
+ end,
+})
+
+table.insert(keys, {
+ "<leader>st",
+ function ()
+ vim.api.nvim_command([[vsplit]])
+ require("harpoon.term").gotoTerminal(1)
+ vim.api.nvim_command([[startinsert]])
+ end
+})
+
+for i = 1, terms do
+ table.insert(keys, {
+ string.format("<leader><leader>%s", i),
+ function()
+ require("harpoon.term").gotoTerminal(i)
+ end,
+ })
+end
+
+for i = 1, binds do
+ table.insert(keys, {
+ string.format("<leader>%s", i),
+ function()
+ require("harpoon.ui").nav_file(i)
+ end,
+ })
+end
+
return {
"ThePrimeagen/harpoon",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-lua/popup.nvim",
},
- keys = require("alpha.harpoon").keymaps,
- config = function()
- require("alpha.harpoon").setup()
- end,
+ keys = keys,
+ opts = {
+ global_settings = {
+ enter_on_sendcmd = true,
+ },
+ projects = {
+ ["$HOME/code/svelte/snippets"] = {
+ term = {
+ cmds = {
+ "npm run dev",
+ },
+ },
+ },
+ },
+ },
}
diff --git a/lua/plugins/laravel.lua b/lua/plugins/laravel.lua
index 055ef9a..b236e54 100644
--- a/lua/plugins/laravel.lua
+++ b/lua/plugins/laravel.lua
@@ -9,7 +9,6 @@ return {
{ "<leader>la", ":Laravel artisan<cr>" },
{ "<leader>lr", ":Laravel routes<cr>" },
},
- event = { "VeryLazy" },
config = function()
vim.g.laravel_log_level = "debug"
require("laravel").setup()
diff --git a/lua/plugins/smart-splits.lua b/lua/plugins/smart-splits.lua
new file mode 100644
index 0000000..49e1df3
--- /dev/null
+++ b/lua/plugins/smart-splits.lua
@@ -0,0 +1,30 @@
+return {
+ "mrjones2014/smart-splits.nvim",
+ config = true,
+ keys = {
+ {
+ "<A-h>",
+ function()
+ require("smart-splits").resize_left()
+ end,
+ },
+ {
+ "<A-j>",
+ function()
+ require("smart-splits").resize_down()
+ end,
+ },
+ {
+ "<A-k>",
+ function()
+ require("smart-splits").resize_up()
+ end,
+ },
+ {
+ "<A-l>",
+ function()
+ require("smart-splits").resize_right()
+ end,
+ },
+ },
+}