From bda827eb443291da3bee2750444c716d4f71f44d Mon Sep 17 00:00:00 2001 From: jay Date: Sat, 3 Sep 2022 16:15:14 +0800 Subject: [PATCH] [feat] update nvim --- nvim/init.vim | 12 ++++++++++++ tmux | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/nvim/init.vim b/nvim/init.vim index 536fe43..2d27bf7 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -73,6 +73,8 @@ Plug 'inkarkat/vim-mark' Plug 'rking/ag.vim' Plug 'terryma/vim-multiple-cursors' +Plug 'lukas-reineke/indent-blankline.nvim' + " temp plugin Plug 'tpope/vim-surround' Plug 'buoto/gotests-vim' @@ -320,6 +322,15 @@ let g:fzf_history_dir = '~/.local/share/fzf-history' lua << EOF +vim.opt.list = true +vim.opt.listchars:append "eol:↴" + +require("indent_blankline").setup { + show_end_of_line = true, + show_current_context = true, + show_current_context_start = true, +} + local nvlsp = require'lspconfig' local lspSig = require'lsp_signature' @@ -389,6 +400,7 @@ cmp.setup { -- behavior = cmp.ConfirmBehavior.Insert, select = true, }), + [''] = cmp.mapping.abort(), -- [''] = cmp.mapping(cmp.mapping.select_next_item(), { 'i', 's' }), }), snippet = { diff --git a/tmux b/tmux index 1be42dd..6cf2e67 100644 --- a/tmux +++ b/tmux @@ -6,7 +6,8 @@ run-shell "tmux setenv -g TMUX_VERSION_29 $(awk 'BEGIN {print (\"'$(tmux -V | se # ----------------------------- # Global settings # ----------------------------- -set -g default-terminal xterm-256color +# set -g default-terminal xterm-256color +set -g default-terminal screen-256color set-option -ga terminal-overrides ",*256col*:Tc" # scrollback buffer n lines