no diagnostics for clangd lol
This commit is contained in:
parent
1ce1b1ee02
commit
bc16c39a59
18
init.lua
18
init.lua
|
@ -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,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 = {},
|
||||||
|
|
Loading…
Reference in New Issue