Mercurial > dotfiles
comparison dot_config/nvim/config.lua @ 396:39744843446d
Use finer line symbol for LSP diagnostics
author | zegervdv <zegervdv@me.com> |
---|---|
date | Mon, 14 Jun 2021 19:07:09 +0200 |
parents | a80312c2755b |
children | aea0cbb82522 |
comparison
equal
deleted
inserted
replaced
395:3f2b7b399dee | 396:39744843446d |
---|---|
355 nnoremap { 'gp', require'goto-preview'.goto_preview_definition, silent = true } | 355 nnoremap { 'gp', require'goto-preview'.goto_preview_definition, silent = true } |
356 nnoremap { 'gP', require'goto-preview'.close_all_win, silent = true } | 356 nnoremap { 'gP', require'goto-preview'.close_all_win, silent = true } |
357 | 357 |
358 inoremap { '<c-l>', vim.lsp.buf.signature_help, silent = true } | 358 inoremap { '<c-l>', vim.lsp.buf.signature_help, silent = true } |
359 | 359 |
360 vim.cmd [[ sign define LspDiagnosticsSignError text=▊ texthl=LspDiagnosticsSignError linehl= numhl= ]] | 360 vim.fn.sign_define("LspDiagnosticsSignError", { texthl = "LspDiagnosticsSignError", linehl="", numhl = "", text = "▎" }) |
361 vim.cmd [[ sign define LspDiagnosticsSignWarning text=▊ texthl=LspDiagnosticsSignWarning linehl= numhl= ]] | 361 vim.fn.sign_define("LspDiagnosticsSignWarning", { texthl = "LspDiagnosticsSignWarning", linehl="", numhl = "", text = "▎" }) |
362 vim.cmd [[ sign define LspDiagnosticsSignInformation text=▊ texthl=LspDiagnosticsSignInformation linehl= numhl= ]] | 362 vim.fn.sign_define("LspDiagnosticsSignInformation", { texthl = "LspDiagnosticsSignInformation", linehl="", numhl = "", text = "▎" }) |
363 vim.cmd [[ sign define LspDiagnosticsSignHint text=▊ texthl=LspDiagnosticsSignHint linehl= numhl= ]] | 363 vim.fn.sign_define("LspDiagnosticsSignHint", { texthl = "LspDiagnosticsSignHint", linehl="", numhl = "", text = "▎" }) |
364 end | 364 end |
365 | 365 |
366 vim.lsp.handlers['textDocument/formatting'] = function(err, _, result, _, bufnr) | 366 vim.lsp.handlers['textDocument/formatting'] = function(err, _, result, _, bufnr) |
367 if err ~= nil or result == nil then return end | 367 if err ~= nil or result == nil then return end |
368 if not vim.api.nvim_buf_get_option(bufnr, 'modified') then | 368 if not vim.api.nvim_buf_get_option(bufnr, 'modified') then |