diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2023-08-12 10:55:34 +0530 |
---|---|---|
committer | Brahmajit Das <brahmajit.xyz@gmail.com> | 2023-08-12 10:55:34 +0530 |
commit | 19cde1a19b3ae7c96473b7623528233bc2f6331d (patch) | |
tree | 19f8b9741ef4e05f1ec042b963ad98a3e8c0ca44 | |
parent | 6b10c29c3a6350cab25c279b5049ba6e6ae654dc (diff) |
nvim: plugins: lsp-config: removed deprecated nerdfonts and show diagnostics on hover
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r-- | lua/plugins/lsp-config.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/plugins/lsp-config.lua b/lua/plugins/lsp-config.lua index 74ac131..2494443 100644 --- a/lua/plugins/lsp-config.lua +++ b/lua/plugins/lsp-config.lua @@ -13,13 +13,14 @@ vim.diagnostic.config({ }) -local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " } +local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " } for type, icon in pairs(signs) do local hl = "DiagnosticSign" .. type vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) end vim.o.updatetime = 250 +vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})]] --vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]] --vim.cmd [[autocmd! ColorScheme * highlight NormalFloat guibg=#4c4f69]] --vim.cmd [[autocmd! ColorScheme * highlight FloatBorder guifg=white guibg=#1f2335]] |