astro-nvim-v3 - change lsp and highlighting
This commit is contained in:
@@ -17,28 +17,28 @@ return {
|
||||
end,
|
||||
},
|
||||
-- Additional features for Clangd
|
||||
{
|
||||
"p00f/clangd_extensions.nvim",
|
||||
lazy = true,
|
||||
ft = { "c", "cpp" },
|
||||
dependencies = {
|
||||
"AstroNvim/astrocore",
|
||||
opts = {
|
||||
autocmds = {
|
||||
clangd_extensions = {
|
||||
{
|
||||
event = "LspAttach",
|
||||
desc = "Load clangd_extensions with clangd",
|
||||
callback = function(args)
|
||||
if assert(vim.lsp.get_client_by_id(args.data.client_id)).name == "clangd" then
|
||||
require "clangd_extensions"
|
||||
vim.api.nvim_del_augroup_by_name "clangd_extensions"
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
-- {
|
||||
-- "p00f/clangd_extensions.nvim",
|
||||
-- lazy = true,
|
||||
-- ft = { "c", "cpp" },
|
||||
-- dependencies = {
|
||||
-- "AstroNvim/astrocore",
|
||||
-- opts = {
|
||||
-- autocmds = {
|
||||
-- clangd_extensions = {
|
||||
-- {
|
||||
-- event = "LspAttach",
|
||||
-- desc = "Load clangd_extensions with clangd",
|
||||
-- callback = function(args)
|
||||
-- if assert(vim.lsp.get_client_by_id(args.data.client_id)).name == "clangd" then
|
||||
-- require "clangd_extensions"
|
||||
-- vim.api.nvim_del_augroup_by_name "clangd_extensions"
|
||||
-- end
|
||||
-- end,
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user