@@ -245,7 +245,7 @@ vim.o.hlsearch = false
245245
246246-- Make line numbers default
247247vim .wo .number = true
248-
248+ vim . wo . relativenumber = true
249249-- Enable mouse mode
250250vim .o .mouse = ' a'
251251
@@ -295,6 +295,14 @@ vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnos
295295vim .keymap .set (' n' , ' <leader>e' , vim .diagnostic .open_float , { desc = ' Open floating diagnostic message' })
296296vim .keymap .set (' n' , ' <leader>q' , vim .diagnostic .setloclist , { desc = ' Open diagnostics list' })
297297
298+ vim .diagnostic .config ({
299+ virtual_text = false
300+ })
301+
302+ -- Show line diagnostics automatically in hover window
303+ vim .o .updatetime = 250
304+ vim .cmd [[ autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
305+
298306-- [[ Highlight on yank ]]
299307-- See `:help vim.highlight.on_yank()`
300308local highlight_group = vim .api .nvim_create_augroup (' YankHighlight' , { clear = true })
@@ -508,6 +516,7 @@ require('which-key').register {
508516require (' mason' ).setup ()
509517require (' mason-lspconfig' ).setup ()
510518
519+
511520-- Enable the following language servers
512521-- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
513522--
@@ -521,8 +530,9 @@ local servers = {
521530 -- gopls = {},
522531 -- pyright = {},
523532 -- rust_analyzer = {},
524- -- tsserver = {},
525- -- html = { filetypes = { 'html', 'twig', 'hbs'} },
533+ tsserver = {},
534+ html = { filetypes = { ' html' , ' twig' , ' hbs' } },
535+ angularls = {},
526536
527537 lua_ls = {
528538 Lua = {
0 commit comments