Skip to content

Commit bd5f269

Browse files
committed
changes
1 parent 51cd35d commit bd5f269

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

init.lua

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ vim.o.hlsearch = false
282282

283283
-- Make line numbers default
284284
vim.wo.number = true
285-
285+
vim.wo.relativenumber = true
286286
-- Enable mouse mode
287287
vim.o.mouse = 'a'
288288

@@ -332,6 +332,14 @@ vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnos
332332
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' })
333333
vim.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()`
337345
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
@@ -565,6 +573,7 @@ require('which-key').register({
565573
require('mason').setup()
566574
require('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

Comments
 (0)