From 9bbe4a9fba750c74a1053af8f2489290ef4d5453 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 18 Feb 2024 12:07:46 +0100 Subject: [PATCH] update nvim mappings & theme --- dot_config/nvim/lua/custom/chadrc.lua | 2 +- dot_config/nvim/lua/custom/mappings.lua | 25 ++++++++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/dot_config/nvim/lua/custom/chadrc.lua b/dot_config/nvim/lua/custom/chadrc.lua index 92eee9d..0ab8aed 100644 --- a/dot_config/nvim/lua/custom/chadrc.lua +++ b/dot_config/nvim/lua/custom/chadrc.lua @@ -5,7 +5,7 @@ M.plugins = "custom.plugins" M.mappings = require "custom.mappings" M.ui = { - theme = "tomorrow_night", + theme = "one_light", statusline = { theme = "default", separator_style = "arrow", diff --git a/dot_config/nvim/lua/custom/mappings.lua b/dot_config/nvim/lua/custom/mappings.lua index 83cf9a5..6d35a02 100644 --- a/dot_config/nvim/lua/custom/mappings.lua +++ b/dot_config/nvim/lua/custom/mappings.lua @@ -64,7 +64,7 @@ M.dap_ui = { function() require("dapui").eval() end, - "Debug - eval expression" + "Debug - eval expression (Alt+K)" } } } @@ -81,4 +81,27 @@ M.general = { } } +M.nvterm = { + n = { + ["ti"] = { + function() + require("nvterm.terminal").toggle "float" + end, + "Toggle floating term" + }, + ["tv"] = { + function() + require("nvterm.terminal").toggle "vertical" + end, + "Toggle vertical term" + }, + ["th"] = { + function() + require("nvterm.terminal").toggle "horizontal" + end, + "Toggle horizontal term" + }, + } +} + return M