From 19d6cdf41669f4d3cdbbcd0de5ffc98d5275db13 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 27 Dec 2023 23:12:09 +0800 Subject: [PATCH] feat: disable toogleterm.nvim, zellij is far more better than it --- home/base/desktop/neovim/astronvim_user/init.lua | 6 ++++-- home/base/desktop/neovim/astronvim_user/mappings.lua | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/home/base/desktop/neovim/astronvim_user/init.lua b/home/base/desktop/neovim/astronvim_user/init.lua index fcee7f88..dd2de9ee 100644 --- a/home/base/desktop/neovim/astronvim_user/init.lua +++ b/home/base/desktop/neovim/astronvim_user/init.lua @@ -8,10 +8,10 @@ return { spell = false, -- Spell checking swapfile = false, -- Swapfile smartindent = false, -- fix https://github.com/ryan4yin/nix-config/issues/4 - title = true; -- Set the title of window to `filename [+=-] (path) - NVIM` + title = true, -- Set the title of window to `filename [+=-] (path) - NVIM` -- The percentage of 'columns' to use for the title -- When the title is longer, only the end of the path name is shown. - titlelen = 20; + titlelen = 20, }, }, @@ -60,6 +60,8 @@ return { -- https://github.com/echasnovski/mini.ai { import = "astrocommunity.motion.mini-ai" }, { import = "astrocommunity.motion.flash-nvim" }, + -- diable toggleterm.nvim, zellij's terminal is far better than neovim's one + { "akinsho/toggleterm.nvim", enabled = false }, { "folke/flash.nvim", vscode = false }, -- Lua implementation of CamelCaseMotion, with extra consideration of punctuation. { import = "astrocommunity.motion.nvim-spider" }, diff --git a/home/base/desktop/neovim/astronvim_user/mappings.lua b/home/base/desktop/neovim/astronvim_user/mappings.lua index 488bc163..7ceb5931 100644 --- a/home/base/desktop/neovim/astronvim_user/mappings.lua +++ b/home/base/desktop/neovim/astronvim_user/mappings.lua @@ -22,8 +22,6 @@ return { -- NOTE: https://neovim.io/doc/user/builtin.html#jobstart() -- 1. If {cmd} is a List it runs directly (no 'shell') -- 2. If {cmd} is a String it runs in the 'shell' - ["tp"] = { function() utils.toggle_term_cmd({ cmd = "ipython" }) end, desc = "ToggleTerm python" }, - -- search and replace globally ['ss'] = {'lua require("spectre").toggle()', desc = "Toggle Spectre" }, ['sw'] = {'lua require("spectre").open_visual({select_word=true})', desc = "Search current word" },