no diagnostics for clangd lol

This commit is contained in:
jhe 2024-06-12 14:26:06 +02:00
parent 1ce1b1ee02
commit bc16c39a59
No known key found for this signature in database
GPG Key ID: 10FFC60F6B8DC9B7
4 changed files with 15 additions and 20 deletions

View File

@ -132,15 +132,6 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({ require('lazy').setup({
{ import = 'plugins' }, { import = 'plugins' },
-- Here are some example plugins that I've included in the Kickstart repository.
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
-- require 'kickstart.plugins.debug',
-- require 'kickstart.plugins.indent_line',
-- require 'kickstart.plugins.lint',
-- require 'kickstart.plugins.autopairs',
-- require 'kickstart.plugins.neo-tree',
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
}, { }, {
ui = { ui = {
-- If you are using a Nerd Font: set icons to an empty table which will use the -- If you are using a Nerd Font: set icons to an empty table which will use the
@ -162,3 +153,12 @@ require('lazy').setup({
}, },
}, },
}) })
local lspconfig = require 'lspconfig'
-- Disable diagnostics and warnings for clangd
lspconfig.clangd.setup {
handlers = {
['textDocument/publishDiagnostics'] = function() end,
},
}

View File

@ -1,12 +1,3 @@
-- return {
-- 'folke/tokyonight.nvim',
-- priority = 1000,
-- init = function()
-- vim.cmd.colorscheme 'desert'
-- vim.cmd.hi 'Comment gui=none'
-- end,
-- }
return { return {
'catppuccin/nvim', 'catppuccin/nvim',
priority = 1000, priority = 1000,

View File

@ -1,4 +1,4 @@
local COPILOT_ENABLED = false local COPILOT_ENABLED = true
vim.keymap.set('n', '<F8>', function() vim.keymap.set('n', '<F8>', function()
if COPILOT_ENABLED then if COPILOT_ENABLED then

View File

@ -155,7 +155,11 @@ return { -- LSP Configuration & Plugins
-- - settings (table): Override the default settings passed when initializing the server. -- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = { local servers = {
clangd = {}, clangd = {
diagnostics = {
enable = false,
},
},
-- gopls = {}, -- gopls = {},
pyright = {}, pyright = {},
-- rust_analyzer = {}, -- rust_analyzer = {},