Add diagnostic settings
This commit is contained in:
parent
fdd8e63f53
commit
d340eaf3eb
1 changed files with 5 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ in
|
|||
sign define LspDiagnosticsSignInformation text=🟣
|
||||
sign define LspDiagnosticsSignHint text=🟢
|
||||
|
||||
nnoremap <silent> de <cmd>lua vim.diagnostic.enable(not vim.diagnostic.is_enabled())<CR>
|
||||
nnoremap <silent> di <cmd>lua vim.diagnostic.open_float()<CR>
|
||||
nnoremap <silent> gd <cmd>lua vim.lsp.buf.definition()<CR>
|
||||
nnoremap <silent> gi <cmd>lua vim.lsp.buf.implementation()<CR>
|
||||
nnoremap <silent> gr <cmd>lua vim.lsp.buf.references()<CR>
|
||||
|
|
@ -162,6 +164,9 @@ in
|
|||
-- this configuration applies to workstations only
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
|
||||
local lsp = require('lspconfig')
|
||||
|
||||
-- show linter messages
|
||||
vim.diagnostic.config({ virtual_text = true })
|
||||
'' +
|
||||
builtins.concatStringsSep "\n" (
|
||||
lib.mapAttrsToList
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue