modules
This commit is contained in:
@@ -34,6 +34,12 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
ixx = "cpp",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
require("config.opts")
|
require("config.opts")
|
||||||
|
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ end
|
|||||||
|
|
||||||
-- clangd
|
-- clangd
|
||||||
vim.lsp.config("clangd", {
|
vim.lsp.config("clangd", {
|
||||||
cmd = { "clangd", "--compile-commands-dir=build" },
|
cmd = { "clangd", "--compile-commands-dir=build", "--experimental-modules-support" },
|
||||||
capabilities = caps,
|
capabilities = caps,
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
filetypes = { "c", "cpp", "cc", "cxx", "c++", "ixx" },
|
filetypes = { "c", "cpp", "cc", "cxx", "c++", "ixx" },
|
||||||
|
|||||||
Reference in New Issue
Block a user