update stuff
This commit is contained in:
@@ -25,12 +25,18 @@ local on_attach = function(client, bufnr)
|
||||
vim.keymap.set("n", "K", vim.lsp.buf.hover, opts)
|
||||
end
|
||||
|
||||
vim.filetype.add({
|
||||
extension = {
|
||||
cu = "cuda",
|
||||
cuh = "cuda",
|
||||
},
|
||||
})
|
||||
-- clangd
|
||||
vim.lsp.config("clangd", {
|
||||
cmd = { "clangd", "--compile-commands-dir=build", "--experimental-modules-support" },
|
||||
capabilities = caps,
|
||||
on_attach = on_attach,
|
||||
filetypes = { "c", "cpp", "cc", "cxx", "c++", "ixx" },
|
||||
filetypes = { "c", "cpp", "cc", "cxx", "c++", "ixx", "cu", "cuh", "cuda" },
|
||||
})
|
||||
vim.lsp.enable("clangd")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user