diff options
author | max397574 <[email protected]> | 2021-11-09 07:17:30 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-11-09 07:17:30 +0100 |
commit | 737acecf1ba51039178c52c23d763b7da04c8781 (patch) | |
tree | 4c085a4c0c9a4a3eb4b31fb32be049eeac9a32c2 /lua/startup/utils.lua | |
parent | 4cc160217dce5d4aee189fdb50dd05b95f79c9f7 (diff) |
refactor(all): 🔄make some things simpler
Diffstat (limited to 'lua/startup/utils.lua')
-rw-r--r-- | lua/startup/utils.lua | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua index 62d9cca..76b6f4b 100644 --- a/lua/startup/utils.lua +++ b/lua/startup/utils.lua @@ -1,4 +1,4 @@ -U = {} +local U = {} local flag = false local new_cursor_pos local help_window @@ -17,13 +17,6 @@ local function bad_line() return true end --- local colors = require("startup.config").colors -local colors = { - background = "#1f2227", - heading_fg = "#009900", - tools_fg = "#009900", -} - U.cursor_pos = vim.api.nvim_win_get_cursor(0) function U.spaces(amount) @@ -34,20 +27,6 @@ function U.key_help() local settings = require("startup").settings local buf = vim.api.nvim_create_buf(false, true) vim.api.nvim_buf_set_option(buf, "bufhidden", "wipe") - vim.api.nvim_buf_set_keymap( - buf, - "n", - "<ESC>", - "<cmd>q<CR>", - { noremap = true, silent = true, nowait = true } - ) - vim.api.nvim_buf_set_keymap( - buf, - "n", - "q", - "<cmd>q<CR>", - { noremap = true, silent = true, nowait = true } - ) local lines = { " Startup.nvim Mappings ", "", |