From 0b538d11f856622218b2eb7131b4c8ad3c743982 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Fri, 9 Jun 2023 17:00:42 +0700 Subject: [PATCH] config: update config - Remove neovim preview - Add zellij keymap --- data/nvim/init.lua | 3 ++- data/zellij/config.kdl | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 8efd8de..9ce18d5 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -1,5 +1,5 @@ -- https://neovim.io/doc/user/lua-guide.html -vim.opt.completeopt = { "menuone", "noinsert", "noselect", "preview" } +vim.opt.completeopt = { "menuone", "noinsert", "noselect" } vim.opt.swapfile = false vim.opt.title = true vim.opt.virtualedit = "block" @@ -47,6 +47,7 @@ vim.keymap.set("n", "rg", ":Rg") vim.keymap.set("n", "", ":NvimTreeToggle") vim.keymap.set("n", "n", ":NvimTreeFindFile") vim.keymap.set("n", "z", ":ZenMode") +vim.keymap.set("n", "tr", ":lua MiniTrailspace.trim()") vim.keymap.set("n", "", ":GoRename") vim.keymap.set("n", "gf", ":GoFillStruct:w") vim.keymap.set("n", "gat", ":GoAlternate") diff --git a/data/zellij/config.kdl b/data/zellij/config.kdl index 336d110..03fae42 100644 --- a/data/zellij/config.kdl +++ b/data/zellij/config.kdl @@ -1,3 +1,14 @@ theme "catppuccin-mocha" default_layout "compact" default_mode "locked" + +keybinds { + normal { + bind "Alt n" { NewPane; } + bind "Alt d" { NewPane "Down"; } + } + locked { + bind "Alt n" { NewPane; } + bind "Alt d" { NewPane "Down"; } + } +}