Add .clang-tidy file and some other updates

This commit is contained in:
Thomas Avé 2023-01-27 17:47:47 +01:00
parent 96166882b2
commit aa0a4d991a
5 changed files with 41 additions and 2 deletions

23
.clang-tidy Normal file
View File

@ -0,0 +1,23 @@
Checks: "*,
-abseil-*,
-altera-*,
-android-*,
-fuchsia-*,
-google-*,
-llvm*,
-zircon-*,
-bugprone-easily-swappable-parameters
-readability-identifier-length
-readability-avoid-const-params-in-decls,
-readability-magic-numbers
-bugprone-narrowing-conversions
-modernize-use-trailing-return-type
-cppcoreguidelines-pro-type-union-access
-modernize-use-nodiscard
-cppcoreguidelines-narrowing-conversions
-cppcoreguidelines-avoid-magic-numbers
-Wsign-compare
"
WarningsAsErrors: ''
HeaderFilterRegex: ''
FormatStyle: none

View File

@ -137,6 +137,13 @@ keys.globalkeys = gears.table.join(
end, end,
{description = "Open Firefox", group = "launcher"} {description = "Open Firefox", group = "launcher"}
), ),
-- Lock the screen
awful.key({"Control", "Mod1"}, "l",
function()
awful.spawn('bash -c "i3lockr --blur 25"')
end,
{description = "Open Firefox", group = "launcher"}
),
-- Generate IMEC TOTP -- Generate IMEC TOTP
awful.key({modkey}, "i", awful.key({modkey}, "i",
function() function()

View File

@ -19,7 +19,7 @@ local awful = require("awful")
-- define default apps (global variable so other components can access it) -- define default apps (global variable so other components can access it)
apps = { apps = {
terminal = 'bash -c "WINIT_X11_SCALE_FACTOR=1 alacritty"', terminal = 'bash -c "WINIT_X11_SCALE_FACTOR=1 alacritty"',
lock = "i3lock", launcher = "/home/user/.toggle_rofi.sh",
screenshot = "scrot -e 'mv $f ~/Pictures/Screenshots/ 2>/dev/null'", screenshot = "scrot -e 'mv $f ~/Pictures/Screenshots/ 2>/dev/null'",
} }

View File

@ -112,8 +112,15 @@ require('lspconfig').clangd.setup {
"clangd", "clangd",
"--background-index", "--background-index",
"--clang-tidy", "--clang-tidy",
"-j=8",
"--clang-tidy-checks=*",
"--all-scopes-completion",
"--completion-style=bundled", "--completion-style=bundled",
"--cross-file-rename" "--cross-file-rename",
"--completion-style=detailed",
"--header-insertion-decorators",
"--header-insertion=iwyu",
"--pch-storage=memory"
} }
} }

View File

@ -31,3 +31,5 @@ Ctheah
TODO TODO
artifacts artifacts
stochasticity stochasticity
playthrough
StateManager