From 5720ad534e2e04f486d54f7a2168559893eb0bcd Mon Sep 17 00:00:00 2001 From: Segcolt Date: Wed, 6 May 2026 09:37:38 -0300 Subject: [PATCH] Fix some problems with the config --- lua/plugins/astrocore.lua | 1 + lua/plugins/astrolsp.lua | 2 +- lua/plugins/editor.lua | 6 ------ lua/plugins/treesitter.lua | 5 ++++- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lua/plugins/astrocore.lua b/lua/plugins/astrocore.lua index 5856011..11f743d 100644 --- a/lua/plugins/astrocore.lua +++ b/lua/plugins/astrocore.lua @@ -23,6 +23,7 @@ return { diagnostics = { virtual_text = true, underline = true, + update_in_insert = true, }, -- passed to `vim.filetype.add` filetypes = { diff --git a/lua/plugins/astrolsp.lua b/lua/plugins/astrolsp.lua index 8485d47..de7a17a 100644 --- a/lua/plugins/astrolsp.lua +++ b/lua/plugins/astrolsp.lua @@ -92,7 +92,7 @@ return { -- list of auto commands to set { -- events to trigger - event = { "InsertLeave", "BufEnter" }, + event = { "InsertLeave", "CursorHold", "BufEnter" }, -- the rest of the autocmd options (:h nvim_create_autocmd) desc = "Refresh codelens (buffer)", callback = function(args) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 506fbbc..e063b73 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -79,12 +79,6 @@ return { }, }, }, - { - "lukas-reineke/headlines.nvim", - dependencies = "nvim-treesitter/nvim-treesitter", - ft = "markdown", - opts = {}, - }, { "folke/todo-comments.nvim", event = "User AstroFile", diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 9ef1edd..c3c818f 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -39,7 +39,10 @@ return { "sql", "typescript", "vimdoc", - "xml" + "xml", + "yaml", + "latex", + "regex", -- add more arguments for adding more treesitter parsers }, },