From bd5f269955fcd67694fe51bc2049dac60ca83c89 Mon Sep 17 00:00:00 2001 From: "Karnitz, Shiloh" Date: Thu, 7 Dec 2023 17:38:45 +0000 Subject: [PATCH] changes --- init.lua | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 1bfc6c5a..7a2f57c8 100644 --- a/init.lua +++ b/init.lua @@ -282,7 +282,7 @@ vim.o.hlsearch = false -- Make line numbers default vim.wo.number = true - +vim.wo.relativenumber = true -- Enable mouse mode vim.o.mouse = 'a' @@ -332,6 +332,14 @@ vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnos vim.keymap.set('n', 'e', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' }) vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostics list' }) +vim.diagnostic.config({ + virtual_text = false +}) + +-- Show line diagnostics automatically in hover window +vim.o.updatetime = 250 +vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]] + -- [[ Highlight on yank ]] -- See `:help vim.highlight.on_yank()` local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) @@ -565,6 +573,7 @@ require('which-key').register({ require('mason').setup() require('mason-lspconfig').setup() + -- Enable the following language servers -- Feel free to add/remove any LSPs that you want here. They will automatically be installed. -- @@ -578,8 +587,9 @@ local servers = { -- gopls = {}, -- pyright = {}, -- rust_analyzer = {}, - -- tsserver = {}, - -- html = { filetypes = { 'html', 'twig', 'hbs'} }, + tsserver = {}, + html = { filetypes = { 'html', 'twig', 'hbs'} }, + angularls = {}, lua_ls = { Lua = {