From 5b083c76bc0953d29cd91544581b03efdd3fc702 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 21 Jul 2026 16:18:42 +0000 Subject: [PATCH] fix blamer and stop greying compiler directives in clang --- lua/config/lspServers.lua | 16 +++++++++++++++- lua/plugins/blamer.lua | 15 +++++++-------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/lua/config/lspServers.lua b/lua/config/lspServers.lua index d66838a..3c73a4a 100644 --- a/lua/config/lspServers.lua +++ b/lua/config/lspServers.lua @@ -2,7 +2,21 @@ local ignoreServers = require('ignoreConfig.lspIgnoreServers') local servers = { jq = {}, - clangd = {}, + clangd = { + -- capabilities = capabilities, + cmd = { + "clangd", + "--background-index", + "--clang-tidy", + }, + settings = { + clangd = { + SemanticTokens = { + DisabledKinds = { "InactiveCode" } + } + } + } + }, glsl_analyzer = {}, lua_ls = { -- cmd = { ... }, diff --git a/lua/plugins/blamer.lua b/lua/plugins/blamer.lua index 1c28e19..27b4622 100644 --- a/lua/plugins/blamer.lua +++ b/lua/plugins/blamer.lua @@ -1,9 +1,8 @@ - -if not vim.fn.has("win32") == 1 then - return{ - "APZelos/blamer.nvim", - } -else - return { - } +if package.config:sub(1,1) == '\\' then + return {} end + +return { + "APZelos/blamer.nvim", +} +