comparison dot_config/nvim/config.lua @ 398:aea0cbb82522

Format config.lua
author zegervdv <zegervdv@me.com>
date Sun, 20 Jun 2021 09:55:49 +0200
parents 39744843446d
children 59db83251de2
comparison
equal deleted inserted replaced
397:7086593e6c0d 398:aea0cbb82522
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.fn.sign_define("LspDiagnosticsSignError", { texthl = "LspDiagnosticsSignError", linehl="", numhl = "", text = "▎" }) 360 vim.fn.sign_define('LspDiagnosticsSignError',
361 vim.fn.sign_define("LspDiagnosticsSignWarning", { texthl = "LspDiagnosticsSignWarning", linehl="", numhl = "", text = "▎" }) 361 { texthl = 'LspDiagnosticsSignError', linehl = '', numhl = '', text = '▎' })
362 vim.fn.sign_define("LspDiagnosticsSignInformation", { texthl = "LspDiagnosticsSignInformation", linehl="", numhl = "", text = "▎" }) 362 vim.fn.sign_define('LspDiagnosticsSignWarning', {
363 vim.fn.sign_define("LspDiagnosticsSignHint", { texthl = "LspDiagnosticsSignHint", linehl="", numhl = "", text = "▎" }) 363 texthl = 'LspDiagnosticsSignWarning',
364 linehl = '',
365 numhl = '',
366 text = '▎',
367 })
368 vim.fn.sign_define('LspDiagnosticsSignInformation', {
369 texthl = 'LspDiagnosticsSignInformation',
370 linehl = '',
371 numhl = '',
372 text = '▎',
373 })
374 vim.fn.sign_define('LspDiagnosticsSignHint',
375 { texthl = 'LspDiagnosticsSignHint', linehl = '', numhl = '', text = '▎' })
364 end 376 end
365 377
366 vim.lsp.handlers['textDocument/formatting'] = function(err, _, result, _, bufnr) 378 vim.lsp.handlers['textDocument/formatting'] = function(err, _, result, _, bufnr)
367 if err ~= nil or result == nil then return end 379 if err ~= nil or result == nil then return end
368 if not vim.api.nvim_buf_get_option(bufnr, 'modified') then 380 if not vim.api.nvim_buf_get_option(bufnr, 'modified') then