Last active
February 26, 2021 13:28
-
-
Save stevenlr/27ed8d5052900e2679c5d2a5b5b0237c to your computer and use it in GitHub Desktop.
Neovim configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"clangd.path": "C:\\Program Files\\LLVM11\\bin\\clangd.exe", | |
"clangd.semanticHighlighting": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GuiPopupmenu 0 | |
GuiFont Cascadia\ Mono:h10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin(stdpath('data') . '/plugged') | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'tomasiser/vim-code-dark' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'jackguo380/vim-lsp-cxx-highlight' | |
Plug 'benknoble/vim-synstax' | |
call plug#end() | |
let mapleader="," | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
set updatetime=500 | |
set signcolumn=yes | |
set shortmess+=c | |
set hidden | |
inoremap <silent><expr> <c-space> coc#refresh() | |
nmap <silent> <F12> <Plug>(coc-definition) | |
nmap <silent> <F2> <Plug>(coc-rename) | |
xmap <leader>f <Plug>(coc-format-selected) | |
nmap <leader>f <Plug>(coc-format-selected) | |
nnoremap <leader>o :<C-u>CocList outline<cr> | |
nnoremap <leader>s :echo synstax#UnderCursor()<CR> | |
autocmd CursorHold * silent call CocActionAsync('highlight') | |
command! -nargs=0 Format :call CocAction('format') | |
syntax on | |
colorscheme codedark | |
set number | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set autoindent | |
set copyindent | |
set cursorline | |
set incsearch | |
set hlsearch | |
set ignorecase | |
set smartcase | |
nmap <silent> <esc> :nohlsearch<cr> | |
set backspace=indent,eol,start | |
set nocompatible | |
set nowrap | |
set autoread | |
au FocusGained * :checktime | |
set laststatus=2 | |
set statusline=\ %(%M%R%H%W\ %)%t%=%l\:%c\ \|\ %{&ff}\ \|\ %{&fenc}\ | |
nnoremap <c-f5> :source $MYVIMRC<cr> | |
let $FZF_DEFAULT_COMMAND="rg --files ." | |
nnoremap <c-p> :FZF<cr> | |
hi CocErrorLine guibg=#882222 | |
hi CocWarningLine guibg=#775522 | |
hi CocHighlightText guibg=#224466 | |
hi Type guifg=#4ec9b0 | |
hi LspCxxHlGroupNamespace guifg=#4ec9b0 | |
hi LspCxxHlSymParameter guifg=#9cdcf0 | |
hi LspCxxHlSymField guifg=#9cdcf0 | |
imap <silent><nowait><c-del> <c-o>dw | |
imap <silent><nowait><c-bs> <c-o>db | |
nnoremap d "_d | |
vnoremap d "_d | |
inoremap <silent><s-insert> <c-o>"*p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment