From 312faec0a27c208da2a017b0e1ab1a6d2d686b5f Mon Sep 17 00:00:00 2001 From: Michaƫl Ball Date: Fri, 3 Jan 2025 15:34:03 +0000 Subject: Neovim conf updates --- neovim/.config/nvim/lua/settings.lua | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'neovim/.config/nvim/lua/settings.lua') diff --git a/neovim/.config/nvim/lua/settings.lua b/neovim/.config/nvim/lua/settings.lua index 6daf849..4bba27b 100644 --- a/neovim/.config/nvim/lua/settings.lua +++ b/neovim/.config/nvim/lua/settings.lua @@ -173,19 +173,5 @@ end vim.diagnostic.config({ underline = { severity = vim.diagnostic.severity.ERROR }, -}) - --- Disable diagnostics for gen.nvim -local lsp_grp = vim.api.nvim_create_augroup("lsp_disable", { clear = true }) -vim.api.nvim_create_autocmd({ "LspAttach" }, { - group = lsp_grp, - callback = function(args) - if vim.bo.buftype == "nofile" then - local bufnr = args.buf - vim.diagnostic.enable(false, { bufnr = bufnr }) - for _, client in ipairs(vim.lsp.get_clients({ bufnr = bufnr })) do - vim.lsp.buf_detach_client(bufnr, client.id) - end - end - end + virtual_text = false, }) -- cgit v1.2.3