From fd1bb911cd3c39d62ae69f5227bbaa0421533bc7 Mon Sep 17 00:00:00 2001 From: Felix Suchert Date: Wed, 21 Aug 2024 14:51:10 +0200 Subject: [PATCH] update vim config --- entropy/nvim/lua/plugins.lua | 14 +++++++++++++- entropy/wezterm/wezterm.lua | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/entropy/nvim/lua/plugins.lua b/entropy/nvim/lua/plugins.lua index dade77e..0b3165a 100644 --- a/entropy/nvim/lua/plugins.lua +++ b/entropy/nvim/lua/plugins.lua @@ -75,7 +75,7 @@ return require('lazy').setup({ popup_border_style = "rounded", enable_git_status = true, enable_diagnostics = true, - enable_normal_mode_for_inputs = true, -- Enable normal mode for input dialogs. + --enable_normal_mode_for_inputs = true, -- Enable normal mode for input dialogs. open_files_do_not_replace_types = { "terminal", "trouble", "qf" }, -- when opening files, do not use windows containing these filetypes or buftypes sort_case_insensitive = false, -- used when sorting files and directories in the tree sort_function = nil , -- use a custom function for sorting files and directories in the tree @@ -86,6 +86,18 @@ return require('lazy').setup({ -- return a.type > b.type -- end -- end , -- this sorts files and directories descendantly + + event_handlers = { + { + event = "neo_tree_popup_input_ready", + ---@param args { bufnr: integer, winid: integer } + handler = function(args) + vim.cmd("stopinsert") + vim.keymap.set("i", "", vim.cmd.stopinsert, { noremap = true, buffer = args.bufnr }) + end, + } + }, + default_component_configs = { container = { enable_character_fade = true diff --git a/entropy/wezterm/wezterm.lua b/entropy/wezterm/wezterm.lua index 66372c9..24dc070 100644 --- a/entropy/wezterm/wezterm.lua +++ b/entropy/wezterm/wezterm.lua @@ -3,6 +3,8 @@ local wezterm = require 'wezterm' -- Creates a config object which we will be adding our config to local config = wezterm.config_builder() +config.enable_wayland = true + -- Find them here: https://wezfurlong.org/wezterm/colorschemes/index.html -- config.color_scheme = 'Ayu Dark (Gogh)' config.color_scheme = 'GruvboxDarkHard'