diff options
author | Squibid <me@zacharyscheiman.com> | 2025-05-06 16:51:24 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2025-05-06 16:51:24 -0500 |
commit | 7c3289fded1f75f6e060f56bd06edc2a327744d9 (patch) | |
tree | bf579e6eb1de84237a74ef13ce67703c15266afe /lua/lsps | |
parent | 3094bf2a3983b375f4adeccd25c3b12bbbded2aa (diff) | |
download | nvim-7c3289fded1f75f6e060f56bd06edc2a327744d9.tar.gz nvim-7c3289fded1f75f6e060f56bd06edc2a327744d9.tar.bz2 nvim-7c3289fded1f75f6e060f56bd06edc2a327744d9.zip |
kitchen sink again :(
Diffstat (limited to 'lua/lsps')
-rw-r--r-- | lua/lsps/clangd.lua | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lua/lsps/clangd.lua b/lua/lsps/clangd.lua deleted file mode 100644 index 05ebfb7..0000000 --- a/lua/lsps/clangd.lua +++ /dev/null @@ -1,31 +0,0 @@ -local map = require('core.misc').map - -return function(server_name, attach, capabilities) - require('lspconfig')[server_name].setup { - on_attach = function(client, bufnr) - attach(client, bufnr) - - -- add some clangd specific mappings - local opts = { buffer = bufnr } - map("n", "<leader>o", "<cmd>ClangdSwitchSourceHeader<CR>", opts) - end, - capabilities = capabilities, - - cmd = { - "clangd", - "--background-index", - "--clang-tidy", - "--header-insertion=iwyu", - "--completion-style=detailed", - "--function-arg-placeholders", - "--fallback-style=llvm" - }, - init_options = { - usePlaceholders = true, - clangdFileStatus = true, - fallback_flags = { - "-xc" -- makes clangd think we're using c instead of c++ - } - } - } -end |