Compare commits
3 Commits
3682be4183
...
afcb4b676b
Author | SHA1 | Date | |
---|---|---|---|
|
afcb4b676b | ||
|
4d7a76bb39 | ||
ada2a5fc75 |
@ -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>
|
||||||
|
@ -1821,4 +1821,46 @@ def get_manifest(is_windows):
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
version = "1.20.1"
|
||||||
|
download_url = ""
|
||||||
|
download_checksum = ""
|
||||||
|
exe_path = ""
|
||||||
|
checksum = ""
|
||||||
|
|
||||||
|
if is_windows:
|
||||||
|
exe_path = "bin/go.exe"
|
||||||
|
download_url = f"https://go.dev/dl/go{version}.windows-amd64.zip"
|
||||||
|
download_checksum = "3b493969196a6de8d9762d09f5bc5ae7a3e5814b0cfbf9cc26838c2bc1314f9c"
|
||||||
|
checksum = "89fc8e2c47f2a2a9138e60159781ce377167cf61e30d8136fbad0d77ac9303ed"
|
||||||
|
symlink = [f"go-{version}.exe"]
|
||||||
|
else:
|
||||||
|
exe_path = f"bin/go"
|
||||||
|
download_url = f"https://go.dev/dl/go{version}.linux-amd64.tar.gz"
|
||||||
|
download_checksum = "000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02"
|
||||||
|
checksum = ""
|
||||||
|
symlink = [f"go-{version}"]
|
||||||
|
|
||||||
|
result.append({
|
||||||
|
"label": "Go",
|
||||||
|
"manifests": [
|
||||||
|
{
|
||||||
|
"download_url": download_url,
|
||||||
|
"download_checksum": download_checksum,
|
||||||
|
"version": version,
|
||||||
|
"unzip_method": 'default',
|
||||||
|
"executables": [
|
||||||
|
{
|
||||||
|
"path": exe_path,
|
||||||
|
"symlink": symlink,
|
||||||
|
"add_to_devenv_path": True,
|
||||||
|
"checksum": checksum,
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"add_to_devenv_script": [],
|
||||||
|
}
|
||||||
|
],
|
||||||
|
})
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
@ -271,8 +271,7 @@ if wezterm.target_triple == "x86_64-pc-windows-msvc" then
|
|||||||
|
|
||||||
clink_exe = string.format("%s\\\\..\\\\..\\\\{clink_exe_path_for_wezterm}", wezterm.executable_dir)
|
clink_exe = string.format("%s\\\\..\\\\..\\\\{clink_exe_path_for_wezterm}", wezterm.executable_dir)
|
||||||
devenv_bat = string.format("%s\\\\..\\\\..\\\\{dev_env_script_name}.bat", wezterm.executable_dir)
|
devenv_bat = string.format("%s\\\\..\\\\..\\\\{dev_env_script_name}.bat", wezterm.executable_dir)
|
||||||
msvc_bat = string.format("%s\\\\..\\\\..\\\\msvc\\\\msvc-{msvc_version}.bat", wezterm.executable_dir)
|
msvc_bat = "C:\\\\Program Files\\\\Microsoft Visual Studio\\\\2022\\\\Community\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat"
|
||||||
win10_sdk_bat = string.format("%s\\\\..\\\\..\\\\msvc\\\\win-sdk-{win10_sdk_version}.bat", wezterm.executable_dir)
|
|
||||||
clink_profile = string.format("%s\\\\..\\\\..\\\\{clink_profile_path_for_wezterm}", wezterm.executable_dir)
|
clink_profile = string.format("%s\\\\..\\\\..\\\\{clink_profile_path_for_wezterm}", wezterm.executable_dir)
|
||||||
|
|
||||||
-- Taken from: https://wezfurlong.org/wezterm/shell-integration.html
|
-- Taken from: https://wezfurlong.org/wezterm/shell-integration.html
|
||||||
@ -283,8 +282,7 @@ if wezterm.target_triple == "x86_64-pc-windows-msvc" then
|
|||||||
default_prog = {{"cmd.exe", "/s", "/k",
|
default_prog = {{"cmd.exe", "/s", "/k",
|
||||||
clink_exe, "inject", "--profile", clink_profile, "-q",
|
clink_exe, "inject", "--profile", clink_profile, "-q",
|
||||||
"&&", "call", devenv_bat,
|
"&&", "call", devenv_bat,
|
||||||
"&&", "call", msvc_bat,
|
"&&", "call", msvc_bat, "x64"}}
|
||||||
"&&", "call", win10_sdk_bat}}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return {{
|
return {{
|
||||||
|
Loading…
Reference in New Issue
Block a user