diff options
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/lsp/clangd.lua | 2 | ||||
| -rw-r--r-- | .config/nvim/queries/c/highlights.scm | 2 | ||||
| -rw-r--r-- | .config/nvim/snippets/c.json | 10 | ||||
| -rw-r--r-- | .config/nvim/snippets/package.json | 6 |
4 files changed, 18 insertions, 2 deletions
diff --git a/.config/nvim/lsp/clangd.lua b/.config/nvim/lsp/clangd.lua index 2e829a8..faa6589 100644 --- a/.config/nvim/lsp/clangd.lua +++ b/.config/nvim/lsp/clangd.lua @@ -62,7 +62,7 @@ return { 'clangd', '--background-index', '--clang-tidy', - '--header-insertion=iwyu', + '--header-insertion=never', '--completion-style=detailed', '--function-arg-placeholders=false', '--fallback-style=none', diff --git a/.config/nvim/queries/c/highlights.scm b/.config/nvim/queries/c/highlights.scm index 1f01078..688bf8f 100644 --- a/.config/nvim/queries/c/highlights.scm +++ b/.config/nvim/queries/c/highlights.scm @@ -5,6 +5,6 @@ "i8" "i16" "i32" "i64" "f32" "f64" "b8" "b32" "b64" - "rune" "usize" "isize" + "rune" "usize" "isize" "uptr" "iptr" "true" "false" "null" "void") (#set! "priority" 200)) diff --git a/.config/nvim/snippets/c.json b/.config/nvim/snippets/c.json new file mode 100644 index 0000000..0ed18f7 --- /dev/null +++ b/.config/nvim/snippets/c.json @@ -0,0 +1,10 @@ +{ + "ccase": { + "body": [ + "case $0: {", + "", + "}break;" + ], + "prefix": "ccase" + } +} diff --git a/.config/nvim/snippets/package.json b/.config/nvim/snippets/package.json index d85b2b7..2f4b048 100644 --- a/.config/nvim/snippets/package.json +++ b/.config/nvim/snippets/package.json @@ -22,6 +22,12 @@ "go" ], "path": "./eko-go.json" + }, + { + "language": [ + "c" + ], + "path": "./c.json" } ] }, |
