fix #1188 | remove options that already have default vim values | remove better-escape.nvim as it feels un-needed, ESC or Ctrl c can be used for escaping normal mode or just map jk to ESC
This commit is contained in:
parent
5ee4f93309
commit
5b37cb5875
@ -11,15 +11,12 @@ g.do_filetype_lua = 1
|
|||||||
g.toggle_theme_icon = " "
|
g.toggle_theme_icon = " "
|
||||||
g.transparency = config.ui.transparency
|
g.transparency = config.ui.transparency
|
||||||
|
|
||||||
opt.confirm = true
|
|
||||||
|
|
||||||
opt.laststatus = 3 -- global statusline
|
opt.laststatus = 3 -- global statusline
|
||||||
opt.statusline = config.plugins.options.statusline.config
|
opt.statusline = config.plugins.options.statusline.config
|
||||||
opt.showmode = false
|
opt.showmode = false
|
||||||
|
|
||||||
opt.title = true
|
opt.title = true
|
||||||
opt.clipboard = "unnamedplus"
|
opt.clipboard = "unnamedplus"
|
||||||
opt.cmdheight = 1
|
|
||||||
opt.cul = true -- cursor line
|
opt.cul = true -- cursor line
|
||||||
|
|
||||||
-- Indentline
|
-- Indentline
|
||||||
@ -30,7 +27,6 @@ opt.smartindent = true
|
|||||||
-- disable tilde on end of buffer: https://github.com/neovim/neovim/pull/8546#issuecomment-643643758
|
-- disable tilde on end of buffer: https://github.com/neovim/neovim/pull/8546#issuecomment-643643758
|
||||||
opt.fillchars = { eob = " " }
|
opt.fillchars = { eob = " " }
|
||||||
|
|
||||||
opt.hidden = true
|
|
||||||
opt.ignorecase = true
|
opt.ignorecase = true
|
||||||
opt.smartcase = true
|
opt.smartcase = true
|
||||||
opt.mouse = "a"
|
opt.mouse = "a"
|
||||||
@ -38,7 +34,6 @@ opt.mouse = "a"
|
|||||||
-- Numbers
|
-- Numbers
|
||||||
opt.number = true
|
opt.number = true
|
||||||
opt.numberwidth = 2
|
opt.numberwidth = 2
|
||||||
opt.relativenumber = false
|
|
||||||
opt.ruler = false
|
opt.ruler = false
|
||||||
|
|
||||||
-- disable nvim intro
|
-- disable nvim intro
|
||||||
|
@ -107,12 +107,7 @@ local plugins = {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
["max397574/better-escape.nvim"] = {
|
|
||||||
event = "InsertCharPre",
|
|
||||||
config = function()
|
|
||||||
require("plugins.configs.others").better_escape()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- load luasnips + cmp related in insert mode only
|
-- load luasnips + cmp related in insert mode only
|
||||||
|
|
||||||
|
@ -28,9 +28,13 @@ local sep_r = sep_style[user_sep_style]["right"]
|
|||||||
|
|
||||||
local modes = {
|
local modes = {
|
||||||
["n"] = { "NORMAL", "St_NormalMode" },
|
["n"] = { "NORMAL", "St_NormalMode" },
|
||||||
|
["niI"] = { "NORMAL i", "St_NormalMode" },
|
||||||
|
["niR"] = { "NORMAL r", "St_NormalMode" },
|
||||||
|
["niV"] = { "NORMAL v", "St_NormalMode" },
|
||||||
["no"] = { "N-PENDING", "St_NormalMode" },
|
["no"] = { "N-PENDING", "St_NormalMode" },
|
||||||
["i"] = { "INSERT", "St_InsertMode" },
|
["i"] = { "INSERT", "St_InsertMode" },
|
||||||
["ic"] = { "INSERT", "St_InsertMode" },
|
["ic"] = { "INSERT", "St_InsertMode" },
|
||||||
|
["ix"] = { "INSERT completion", "St_InsertMode" },
|
||||||
["t"] = { "TERMINAL", "St_TerminalMode" },
|
["t"] = { "TERMINAL", "St_TerminalMode" },
|
||||||
["nt"] = { "NTERMINAL", "St_NTerminalMode" },
|
["nt"] = { "NTERMINAL", "St_NTerminalMode" },
|
||||||
["v"] = { "VISUAL", "St_VisualMode" },
|
["v"] = { "VISUAL", "St_VisualMode" },
|
||||||
|
Loading…
Reference in New Issue
Block a user