@@ -282,7 +282,7 @@ vim.o.hlsearch = false
282282
283283-- Make line numbers default
284284vim .wo .number = true
285-
285+ vim . wo . relativenumber = true
286286-- Enable mouse mode
287287vim .o .mouse = ' a'
288288
@@ -332,6 +332,14 @@ vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnos
332332vim .keymap .set (' n' , ' <leader>e' , vim .diagnostic .open_float , { desc = ' Open floating diagnostic message' })
333333vim .keymap .set (' n' , ' <leader>q' , vim .diagnostic .setloclist , { desc = ' Open diagnostics list' })
334334
335+ vim .diagnostic .config ({
336+ virtual_text = false
337+ })
338+
339+ -- Show line diagnostics automatically in hover window
340+ vim .o .updatetime = 250
341+ vim .cmd [[ autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
342+
335343-- [[ Highlight on yank ]]
336344-- See `:help vim.highlight.on_yank()`
337345local highlight_group = vim .api .nvim_create_augroup (' YankHighlight' , { clear = true })
@@ -565,6 +573,7 @@ require('which-key').register({
565573require (' mason' ).setup ()
566574require (' mason-lspconfig' ).setup ()
567575
576+
568577-- Enable the following language servers
569578-- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
570579--
@@ -578,8 +587,9 @@ local servers = {
578587 -- gopls = {},
579588 -- pyright = {},
580589 -- rust_analyzer = {},
581- -- tsserver = {},
582- -- html = { filetypes = { 'html', 'twig', 'hbs'} },
590+ tsserver = {},
591+ html = { filetypes = { ' html' , ' twig' , ' hbs' } },
592+ angularls = {},
583593
584594 lua_ls = {
585595 Lua = {
0 commit comments