Some fun vim updates
This commit is contained in:
parent
1c3d7d38dd
commit
dc6909073c
4 changed files with 16 additions and 4 deletions
|
@ -37,6 +37,8 @@ if [ -x /usr/bin/dircolors ]; then
|
||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
alias kssh='kitty +kitten ssh'
|
||||||
|
|
||||||
# enable programmable completion features
|
# enable programmable completion features
|
||||||
if ! shopt -oq posix; then
|
if ! shopt -oq posix; then
|
||||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
{
|
{
|
||||||
"suggest.autoTrigger": "none"
|
"suggest.autoTrigger": "none",
|
||||||
|
"signature.target": "echo",
|
||||||
|
"rust-analyzer.updates.checkOnStartup": false,
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,13 +36,14 @@ au CursorHoldI * checktime
|
||||||
|
|
||||||
" Line numnbmers are cool
|
" Line numnbmers are cool
|
||||||
set number
|
set number
|
||||||
|
set relativenumber
|
||||||
" Always show the signcolumn, otherwise it would shift the text each time
|
" Always show the signcolumn, otherwise it would shift the text each time
|
||||||
" diagnostics appear/become resolved.
|
" diagnostics appear/become resolved.
|
||||||
if has("nvim-0.5.0") || has("patch-8.1.1564")
|
if has("nvim-0.5.0") || has("patch-8.1.1564")
|
||||||
" Recently vim can merge signcolumn and number column into one
|
" Recently vim can merge signcolumn and number column into one
|
||||||
set signcolumn=number
|
|
||||||
else
|
|
||||||
set signcolumn=yes
|
set signcolumn=yes
|
||||||
|
else
|
||||||
|
set signcolumn=number
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Turn off polyglot for some langs so they play nice
|
" Turn off polyglot for some langs so they play nice
|
||||||
|
@ -57,3 +58,5 @@ source $HOME/.config/nvim/colors.vim
|
||||||
" Manually trigger completions
|
" Manually trigger completions
|
||||||
inoremap <silent><expr> <C-k> coc#refresh()
|
inoremap <silent><expr> <C-k> coc#refresh()
|
||||||
|
|
||||||
|
" Conceal markdown syntax
|
||||||
|
set conceallevel=2
|
||||||
|
|
|
@ -18,6 +18,12 @@ Plug 'sheerun/vim-polyglot' " Automatic syntax highlighting for many languages
|
||||||
Plug 'ntietz/tla.vim'
|
Plug 'ntietz/tla.vim'
|
||||||
Plug 'fatih/vim-go'
|
Plug 'fatih/vim-go'
|
||||||
|
|
||||||
|
" Markdown suppoert
|
||||||
|
Plug 'godlygeek/tabular'
|
||||||
|
Plug 'preservim/vim-markdown'
|
||||||
|
let g:vim_markdown_folding_disabled = 1
|
||||||
|
let g:vim_markdown_strikethrough = 1
|
||||||
|
|
||||||
" Use common config to setup tab depth
|
" Use common config to setup tab depth
|
||||||
Plug 'editorconfig/editorconfig-vim'
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
|
|
||||||
|
@ -29,5 +35,4 @@ Plug 'neoclide/coc.nvim', {'branch': 'master'}
|
||||||
" After installation, run this to setup with Rust:
|
" After installation, run this to setup with Rust:
|
||||||
" :CocInstall coc-rust-analyzer
|
" :CocInstall coc-rust-analyzer
|
||||||
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
Loading…
Reference in a new issue