From c04ae196403d23eb6507df5cffc10e49bbeaf1a4 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Wed, 23 Apr 2025 17:22:23 -0300 Subject: [PATCH 1/2] fix(neovim): correctly configure inlay hints --- modules/neovim/lsp.lua | 2 +- modules/neovim/lua/plugins/astrocore.lua | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/neovim/lsp.lua b/modules/neovim/lsp.lua index f621f41..40e3b75 100644 --- a/modules/neovim/lsp.lua +++ b/modules/neovim/lsp.lua @@ -15,7 +15,7 @@ return { features = { autoformat = true, -- enable or disable auto formatting on start codelens = true, -- enable/disable codelens refresh on start - inlay_hints = false, -- enable/disable inlay hints on start + inlay_hints = true, -- enable/disable inlay hints on start semantic_tokens = true, -- enable/disable semantic token highlighting }, -- customize lsp formatting options diff --git a/modules/neovim/lua/plugins/astrocore.lua b/modules/neovim/lua/plugins/astrocore.lua index 98c6891..57d74b7 100644 --- a/modules/neovim/lua/plugins/astrocore.lua +++ b/modules/neovim/lua/plugins/astrocore.lua @@ -17,7 +17,6 @@ return { highlighturl = true, -- highlight URLs at start notifications = true, -- enable notifications at start signature_help = true, -- enable automatically showing signature help - inlay_hints = true, -- enable inlay hints globally }, -- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on diagnostics = { From 46127c6f48f9df253793e0cb21cbf170da8e2040 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Wed, 23 Apr 2025 17:22:48 -0300 Subject: [PATCH 2/2] chore(neovim): update astrocore features section --- modules/neovim/lua/plugins/astrocore.lua | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/modules/neovim/lua/plugins/astrocore.lua b/modules/neovim/lua/plugins/astrocore.lua index 57d74b7..4ad68b2 100644 --- a/modules/neovim/lua/plugins/astrocore.lua +++ b/modules/neovim/lua/plugins/astrocore.lua @@ -10,18 +10,24 @@ return { opts = { -- Configure core features of AstroNvim features = { - large_buf = { size = 1024 * 500, lines = 10000 }, -- set global limits for large files for disabling features like treesitter - autopairs = true, -- enable autopairs at start - cmp = true, -- enable completion at start - diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on) - highlighturl = true, -- highlight URLs at start - notifications = true, -- enable notifications at start - signature_help = true, -- enable automatically showing signature help + autopairs = true, -- enable autopairs at start + cmp = true, -- enable completion at start + diagnostics = true, -- enable diagnostics at start + highlighturl = true, -- highlight URLs at start + notifications = true, -- enable notifications at start + signature_help = true, -- enable automatically showing signature help + large_buf = { -- set global limits for large files for disabling features like treesitter + size = 1024 * 100, + lines = 10000, + line_length = 1000, + }, }, -- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on diagnostics = { - virtual_text = true, + underline = true, + update_in_insert = false, virtual_lines = { current_line = true }, + virtual_text = true, }, -- vim options can be configured here options = {