feat(lsp): disable inlay_hints, clangd changes
This commit is contained in:
@@ -5,7 +5,7 @@ return {
|
|||||||
opts = {
|
opts = {
|
||||||
features = {
|
features = {
|
||||||
autoformat = false,
|
autoformat = false,
|
||||||
inlay_hints = true,
|
inlay_hints = false, -- BUG: upstream https://github.com/neovim/neovim/issues/27645
|
||||||
},
|
},
|
||||||
formatting = {
|
formatting = {
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
@@ -16,7 +16,7 @@ return {
|
|||||||
mappings = {
|
mappings = {
|
||||||
n = {
|
n = {
|
||||||
gh = {
|
gh = {
|
||||||
require("clangd_extensions.switch_source_header").switch_source_header,
|
function() require("clangd_extensions.switch_source_header").switch_source_header() end,
|
||||||
desc = "Switch to matching source or header file",
|
desc = "Switch to matching source or header file",
|
||||||
cond = "textDocument/switchSourceHeader",
|
cond = "textDocument/switchSourceHeader",
|
||||||
},
|
},
|
||||||
@@ -25,8 +25,12 @@ return {
|
|||||||
---@diagnostic disable: missing-fields
|
---@diagnostic disable: missing-fields
|
||||||
config = {
|
config = {
|
||||||
clangd = {
|
clangd = {
|
||||||
cmd = { "clangd", "--header-insertion=never" }, -- Disable auto includes
|
|
||||||
filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
|
filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
|
||||||
|
cmd = {
|
||||||
|
"clangd",
|
||||||
|
"--header-insertion=never", -- Disable auto includes
|
||||||
|
"--enable-config", -- Enable .clangd and clangd.yaml files
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user