This commit is contained in:
simonkellet
2023-09-06 20:17:38 +01:00
parent 3752afd442
commit f84de51208
4 changed files with 34 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
snippet beg "begin{} / end{}" bA
\begin{$1}
$0
\end{$1}
endsnippet
+3
View File
@@ -0,0 +1,3 @@
snippet std "use namespace std" b
using namespace std;
endsnippet
+16
View File
@@ -53,6 +53,7 @@ Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'}
set completeopt-=preview
" Go related keybinds
autocmd FileType go nmap <leader>r <Plug>(go-run)
" Move through errors easier!
map <C-n> :cnext<CR>
map <C-m> :cprevious<CR>
@@ -72,6 +73,8 @@ autocmd FileType go nmap <leader>b :<C-u>call <SID>build_go_files()<CR>
let g:go_def_mode='gopls'
let g:go_info_mode='gopls'
let g:go_list_type = "quickfix"
let g:go_gopls_complete_unimported = 1
let g:go_gopls_use_placeholders = 1
set autowrite
""""""""""""""""""""""""""""""GO""""""""""""""""""""""""""""""""""""""""
@@ -135,6 +138,8 @@ Plug 'mattn/calendar-vim'
" Animate
" Plug 'camspiers/animate.vim'
" Lens
Plug 'camspiers/lens.vim'
" Better Syntax Support
@@ -290,6 +295,17 @@ nnoremap <leader>T :VimwikiTable<CR>
" Rust
let g:rustfmt_autosave = 1
" C
let g:clang_complete_auto = 0
let g:clang_auto_select = 0
let g:neoformat_cpp_clangformat = {
\ 'exe': 'clang-format',
\ 'args': ['--style="{IndentWidth: 4}"']
\}
let g:neoformat_enabled_cpp = ['clangformat']
let g:neoformat_enabled_c = ['clangformat']
" Fullscreen on nvim in kitty term
"autocmd VimLeave * :silent !kitty @ set-spacing padding=20 margin=20
"autocmd VimEnter * :silent !kitty @ set-spacing padding=0 margin=0