diff --git a/init.lua b/init.lua index 22061395..070162a4 100644 --- a/init.lua +++ b/init.lua @@ -132,15 +132,6 @@ vim.opt.rtp:prepend(lazypath) require('lazy').setup({ { 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 = { -- 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, + }, +} diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index c7855d8d..938e1130 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -1,12 +1,3 @@ --- return { --- 'folke/tokyonight.nvim', --- priority = 1000, --- init = function() --- vim.cmd.colorscheme 'desert' --- vim.cmd.hi 'Comment gui=none' --- end, --- } - return { 'catppuccin/nvim', priority = 1000, diff --git a/lua/plugins/copilot.lua b/lua/plugins/copilot.lua index 1ba0d394..804fd3c5 100644 --- a/lua/plugins/copilot.lua +++ b/lua/plugins/copilot.lua @@ -1,4 +1,4 @@ -local COPILOT_ENABLED = false +local COPILOT_ENABLED = true vim.keymap.set('n', '', function() if COPILOT_ENABLED then diff --git a/lua/plugins/nvim_lspconfig.lua b/lua/plugins/nvim_lspconfig.lua index a6436e60..0c680331 100644 --- a/lua/plugins/nvim_lspconfig.lua +++ b/lua/plugins/nvim_lspconfig.lua @@ -155,7 +155,11 @@ return { -- LSP Configuration & Plugins -- - 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/ local servers = { - clangd = {}, + clangd = { + diagnostics = { + enable = false, + }, + }, -- gopls = {}, pyright = {}, -- rust_analyzer = {},