Compare commits
2 Commits
afcb4b676b
...
3682be4183
Author | SHA1 | Date | |
---|---|---|---|
|
3682be4183 | ||
|
4f162ab626 |
@ -63,12 +63,10 @@ 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",
|
||||||
}
|
}
|
||||||
@ -366,22 +364,6 @@ 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>
|
||||||
|
Loading…
Reference in New Issue
Block a user