Change diagnostic to lualine
This commit is contained in:
@ -31,7 +31,9 @@ local lspKeys = function(client, bufnr)
|
||||
vim.tbl_extend('error', options, { desc = 'References' }))
|
||||
vim.keymap.set('n', '<scapce>s', tele_builtins.lsp_dynamic_workspace_symbols,
|
||||
vim.tbl_extend('error', options, { desc = 'Workspace symbols' }))
|
||||
vim.keymap.set('n', '<space>v', function() tele_builtins.diagnostics({ bufnr = 0 }) end,
|
||||
vim.keymap.set('n', '<space>v', vim.diagnostic.open_float,
|
||||
vim.tbl_extend('error', options, { desc = 'Diagnostics Float' }))
|
||||
vim.keymap.set('n', '<space>V', function() tele_builtins.diagnostics({ bufnr = 0 }) end,
|
||||
vim.tbl_extend('error', options, { desc = 'Diagnostics' }))
|
||||
vim.keymap.set('n', '<A-o>', '<cmd>ClangdSwitchSourceHeader<CR>',
|
||||
vim.tbl_extend('error', options, { desc = 'Switch Source/Header' }))
|
||||
@ -126,7 +128,7 @@ return {
|
||||
ensure_installed = {
|
||||
'clangd',
|
||||
'denols',
|
||||
'neocmake',
|
||||
-- 'neocmake',
|
||||
'pyright',
|
||||
-- 'zk', -- No support for windows
|
||||
'lua_ls',
|
||||
@ -347,14 +349,6 @@ return {
|
||||
end,
|
||||
},
|
||||
})
|
||||
local diag_group = vim.api.nvim_create_augroup('lsp_diagnostic_float', { clear = false })
|
||||
vim.api.nvim_create_autocmd({ 'CursorHold' }, {
|
||||
callback = function()
|
||||
vim.diagnostic.open_float({scope = 'line', focusable = false}, { focus = false })
|
||||
end,
|
||||
group = diag_group,
|
||||
desc = 'Document Highlight',
|
||||
})
|
||||
end,
|
||||
event = 'VeryLazy'
|
||||
}
|
||||
|
@ -1,6 +1,9 @@
|
||||
return {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
dependencies = {
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
'Isrothy/lualine-diagnostic-message'
|
||||
},
|
||||
config = function()
|
||||
local statusline = require('arrow.statusline')
|
||||
require('lualine').setup {
|
||||
@ -59,6 +62,15 @@ return {
|
||||
{
|
||||
'filesize',
|
||||
},
|
||||
{
|
||||
'diagnostic-message',
|
||||
icons = {
|
||||
error = ' ',
|
||||
warn = ' ',
|
||||
info = ' ',
|
||||
hint = ' ',
|
||||
}
|
||||
}
|
||||
},
|
||||
lualine_c = {
|
||||
},
|
||||
|
Reference in New Issue
Block a user