]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/snacks.lua
weechat: update config
[dotfiles.git] / nvim / lua / plugins / snacks.lua
index 2c7f6a87d16507a370ce4d5d1726f4746a6de19a..4b34734872bc3aaa28ee109c4c5bc5ac0245e8f5 100644 (file)
@@ -28,18 +28,15 @@ return {
       terminal = {
         win = {
           keys = {
-            nav_h = { "<C-h>", term_nav("h"), desc = "Go to Left Window", expr = true, mode = "t" },
+            nav_h = { "<C-h>", term_nav("W"), desc = "Go to Prev Window", expr = true, mode = "t" },
             nav_j = { "<C-j>", term_nav("j"), desc = "Go to Lower Window", expr = true, mode = "t" },
             nav_k = { "<C-k>", term_nav("k"), desc = "Go to Upper Window", expr = true, mode = "t" },
-            nav_l = { "<C-l>", term_nav("l"), desc = "Go to Right Window", expr = true, mode = "t" },
+            nav_l = { "<C-l>", term_nav("w"), desc = "Go to Next Window", expr = true, mode = "t" },
           },
         },
       },
       dashboard = {
         preset = {
-          pick = function(cmd, opts)
-            return LazyVim.pick(cmd, opts)()
-          end,
           -- TODO: replace header
           header = [[
           ██╗      █████╗ ██╗   ██╗███████╗██╗   ██╗██╗   ██╗██╗███╗   ███╗          Z
@@ -52,7 +49,7 @@ return {
           ---@type snacks.dashboard.Item[]
           keys = {
             { icon = " ", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" },
-            { icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
+            { icon = " ", key = "i", desc = "New File", action = ":ene | startinsert" },
             { icon = " ", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" },
             { icon = " ", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" },
             { icon = " ", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" },