Compare commits

..

3 Commits

Author SHA1 Message Date
doylet
afcb4b676b Use installed MSVC 2023-08-25 11:20:22 +10:00
doyle
4d7a76bb39 Add go 1.20.1 2023-08-25 11:20:22 +10:00
ada2a5fc75 devenver: Add F3 pad with '=' 2023-08-25 00:17:06 +10:00

View File

@ -63,10 +63,12 @@ lua <<EOF
lsp.configure('clangd', { lsp.configure('clangd', {
cmd = { cmd = {
"clangd", "clangd",
"-j",
"1",
"--background-index", "--background-index",
"--background-index-priority=background",
"--pch-storage=memory",
"--clang-tidy", "--clang-tidy",
"--limit-references=1024",
"--limit-results=1024",
"--header-insertion=iwyu", "--header-insertion=iwyu",
"--header-insertion-decorators", "--header-insertion-decorators",
} }
@ -364,6 +366,22 @@ nnoremap <leader>cc <cmd>FzfCommits<cr>
nnoremap <leader>cb <cmd>FzfBCommits<cr> nnoremap <leader>cb <cmd>FzfBCommits<cr>
nnoremap <leader>b <cmd>FzfBuffers<cr> nnoremap <leader>b <cmd>FzfBuffers<cr>
function! PadAndTruncateLineTo80Function()
let line = getline('.')
let line_length = strlen(line)
let padding = 80 - line_length
let padding = max([padding, 0])
let existing_space = line_length == 80 || match(line, ' $') != -1
" Construct the new line with padding and a space before the padding
let new_line = line . (existing_space ? '' : ' ') . repeat('=', padding - 1)
call setline(line('.'), new_line)
endfunction
command! PadAndTruncateLineTo80 :call PadAndTruncateLineTo80Function()<CR>
nnoremap <silent> <F3> :PadAndTruncateLineTo80<cr>
nnoremap <silent> <F6> <cmd>RemedyBGOpenFile<cr><cr> nnoremap <silent> <F6> <cmd>RemedyBGOpenFile<cr><cr>
nnoremap <silent> <F5> <cmd>RemedyBGStartDebugging<cr><cr> nnoremap <silent> <F5> <cmd>RemedyBGStartDebugging<cr><cr>
nnoremap <silent> <S-F5> <cmd>RemedyBGStopDebugging<cr><cr> nnoremap <silent> <S-F5> <cmd>RemedyBGStopDebugging<cr><cr>