fix neovim cursor
This commit is contained in:
parent
68f4283a0c
commit
628239ee21
2 changed files with 13 additions and 0 deletions
|
@ -37,6 +37,16 @@ opt.clipboard:append("unnamedplus")
|
||||||
|
|
||||||
vim.cmd.colorscheme("iceberg")
|
vim.cmd.colorscheme("iceberg")
|
||||||
|
|
||||||
|
-- restore terminal cursor on exit
|
||||||
|
vim.api.nvim_create_autocmd("VimLeave", {
|
||||||
|
callback = function ()
|
||||||
|
opt.guicursor = "a:ver25-blinkon500-blinkon500"
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
-- blinking cursor in insert mode
|
||||||
|
opt.guicursor = "i-ci-ve:ver25-blinkon500-blinkon500"
|
||||||
|
|
||||||
keymap.set("n", "<space>s", require("nvim-tree.api").tree.toggle, {
|
keymap.set("n", "<space>s", require("nvim-tree.api").tree.toggle, {
|
||||||
desc = "toggle nvim-tree",
|
desc = "toggle nvim-tree",
|
||||||
silent = true,
|
silent = true,
|
||||||
|
|
|
@ -50,6 +50,9 @@
|
||||||
bindkey -M viins "^A" beginning-of-line
|
bindkey -M viins "^A" beginning-of-line
|
||||||
bindkey -M viins "^B" backward-char
|
bindkey -M viins "^B" backward-char
|
||||||
|
|
||||||
|
# accept one word completion
|
||||||
|
bindkey -M viins "^S" forward-word
|
||||||
|
|
||||||
# fzf-tab stuff
|
# fzf-tab stuff
|
||||||
# set description format to enable group support
|
# set description format to enable group support
|
||||||
zstyle ':completion:*:descriptions' format '[%d]'
|
zstyle ':completion:*:descriptions' format '[%d]'
|
||||||
|
|
Loading…
Add table
Reference in a new issue