github 配置地址

https://github.com/AstroNvim/AstroNvim.git

个人私用配置

local capabilities = vim.lsp.protocol.make_client_capabilities()

local capabilities_clangd = capabilities
capabilities_clangd.offsetEncoding = { "utf-16" }

local config = {
  colorscheme = "catppuccin",
  header = {
    "                                                     ",
    "  ███╗   ██╗███████╗ ██████╗ ██╗   ██╗██╗███╗   ███╗ ",
    "  ████╗  ██║██╔════╝██╔═══██╗██║   ██║██║████╗ ████║ ",
    "  ██╔██╗ ██║█████╗  ██║   ██║██║   ██║██║██╔████╔██║ ",
    "  ██║╚██╗██║██╔══╝  ██║   ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ",
    "  ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ",
    "  ╚═╝  ╚═══╝╚══════╝ ╚═════╝   ╚═══╝  ╚═╝╚═╝     ╚═╝ ",
    "                                                     ",
  },
  lsp = {
    ["server-settings"] = {
      clangd = {
        capabilities = capabilities_clangd,
        single_file_support = true,
        cmd = {
          "clangd",
          "--background-index",
          "--pch-storage=memory",
          "--query-driver=/usr/bin/clang++,/usr/bin/**/clang-*,/bin/clang,/bin/clang++,/usr/bin/gcc,/usr/bin/g++",
          "--clang-tidy",
          "--all-scopes-completion",
          "--cross-file-rename",
          "--completion-style=detailed",
          "--header-insertion-decorators",
          "--header-insertion=iwyu",
        },
      },
    },
  },
  polish = function() end,
}

return config

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐