feat(lsp): disable inlay_hints, clangd changes
This commit is contained in:
@@ -5,7 +5,7 @@ return {
|
||||
opts = {
|
||||
features = {
|
||||
autoformat = false,
|
||||
inlay_hints = true,
|
||||
inlay_hints = false, -- BUG: upstream https://github.com/neovim/neovim/issues/27645
|
||||
},
|
||||
formatting = {
|
||||
format_on_save = {
|
||||
@@ -16,7 +16,7 @@ return {
|
||||
mappings = {
|
||||
n = {
|
||||
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",
|
||||
cond = "textDocument/switchSourceHeader",
|
||||
},
|
||||
@@ -25,8 +25,12 @@ return {
|
||||
---@diagnostic disable: missing-fields
|
||||
config = {
|
||||
clangd = {
|
||||
cmd = { "clangd", "--header-insertion=never" }, -- Disable auto includes
|
||||
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