aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-01-12 08:44:57 +0100
committerKarel Kočí <cynerd@email.cz>2023-01-12 08:44:57 +0100
commit9aebd3181e16a5718b5d958d54e606a41a769870 (patch)
tree8e816066c112fb866e27bbf53526b11333be2652
parent718e46e50343c40b786a806ef9f18c530c02b369 (diff)
downloadmyconfigs-9aebd3181e16a5718b5d958d54e606a41a769870.tar.gz
myconfigs-9aebd3181e16a5718b5d958d54e606a41a769870.tar.bz2
myconfigs-9aebd3181e16a5718b5d958d54e606a41a769870.zip
configure clang
-rw-r--r--config/clangd/config.yaml8
-rwxr-xr-xinstall1
-rwxr-xr-xlocal/bin/wake-ridcully2
m---------private0
-rw-r--r--vim/ftplugin/c.vim1
5 files changed, 11 insertions, 1 deletions
diff --git a/config/clangd/config.yaml b/config/clangd/config.yaml
new file mode 100644
index 0000000..2fc7c59
--- /dev/null
+++ b/config/clangd/config.yaml
@@ -0,0 +1,8 @@
+Diagnostics:
+ UnusedIncludes: Strict
+InlayHints:
+ Enabled: Yes
+ ParameterNames: Yes
+ DeducedTypes: Yes
+Hover:
+ ShowAKA: Yes
diff --git a/install b/install
index 3982175..e1d2193 100755
--- a/install
+++ b/install
@@ -56,6 +56,7 @@ if ask "vim" "Install VIM scripts"; then
fi
if ask "dev" "Development tools configuration"; then
+ inst config/clangd/ ~/.config/clangd
inst pdbrc ~/.pdbrc
inst config/pycodestyle ~/.config/pycodestyle
inst flake8 ~/.flake8
diff --git a/local/bin/wake-ridcully b/local/bin/wake-ridcully
index a29ad64..d4c2fa8 100755
--- a/local/bin/wake-ridcully
+++ b/local/bin/wake-ridcully
@@ -1,2 +1,2 @@
#!/bin/sh
-exec ssh omnia.adm etherwake -i br-lan 70:85:c2:4a:59:f2
+exec ssh omnia.adm wakeonlan 70:85:c2:4a:59:f2
diff --git a/private b/private
-Subproject f4e35eefe069d3348a7e4eff9d5d1553ba30e77
+Subproject 0881f899191e860d53362f870f0a6831a52c466
diff --git a/vim/ftplugin/c.vim b/vim/ftplugin/c.vim
index 1b8989d..1d3780c 100644
--- a/vim/ftplugin/c.vim
+++ b/vim/ftplugin/c.vim
@@ -1,6 +1,7 @@
let b:ale_linters = ['clangd', 'cppcheck', 'flawfinder']
let b:ale_fixers = ['clang-format', 'remove_trailing_lines', 'trim_whitespace']
let g:ale_c_parse_compile_commands = 1
+let g:ale_c_clangd_options = '--header-insertion=never'
nmap <F8> :ALENext<cr>
nmap <F7> :ALEPrevious<cr>