bro no way this is the issue
This commit is contained in:
@@ -254,6 +254,17 @@ vim.api.nvim_create_autocmd(
|
||||
end
|
||||
})
|
||||
|
||||
|
||||
for _, method in ipairs({ 'textDocument/diagnostic', 'workspace/diagnostic' }) do
|
||||
local default_diagnostic_handler = vim.lsp.handlers[method]
|
||||
vim.lsp.handlers[method] = function(err, result, context, config)
|
||||
if err ~= nil and err.code == -32802 then
|
||||
return
|
||||
end
|
||||
return default_diagnostic_handler(err, result, context, config)
|
||||
end
|
||||
end
|
||||
|
||||
-- vim.api.nvim_create_autocmd({ 'FileType', 'BufRead', 'BufReadPre', 'BufReadPost', 'BufWrite', 'BufWritePre',
|
||||
-- 'BufWritePost' }, {
|
||||
-- pattern = "*",
|
||||
|
||||
@@ -34,6 +34,9 @@ map('i', '<C-L>', '<c-g>u<Esc>[s1z=`]a<c-g>u', { noremap = true })
|
||||
vim.cmd('colorscheme theme-nvim')
|
||||
vim.g.airline_theme = 'theme'
|
||||
|
||||
-- stupid fix for stupid problems i guess
|
||||
vim.g["airline#extensions#whitespace#enabled"] = false
|
||||
|
||||
local color = require('base16-colorscheme').colors.base02
|
||||
|
||||
vim.api.nvim_set_hl(0, 'LineNr', { fg = color, bg = "none" })
|
||||
|
||||
@@ -29,6 +29,7 @@ return require('packer').startup({
|
||||
highlight = { enable = true, disable = { "latex" } },
|
||||
indent = { enable = true },
|
||||
ensure_installed = "all",
|
||||
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user