From 9b26df01890e0ebb242b36d9b08063699d23dc69 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 7 Aug 2024 16:56:37 +0200 Subject: [PATCH 1/3] Cursorword highlight from mini --- lua/plugins/mini.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua index 3c10141..f7fd466 100644 --- a/lua/plugins/mini.lua +++ b/lua/plugins/mini.lua @@ -28,6 +28,11 @@ return { -- Collection of various small independent plugins/modules -- Simple startup screen require('mini.starter').setup() + -- Highlight word under cursor. + -- Useful for motions similar to 'diw' and 'ciw' + -- as well as # and * searches + require('mini.cursorword').setup() + -- Simple and easy statusline. -- You could remove this setup call if you don't like it, -- and try some other statusline plugin From 972ba828f214c7bf50b286063c594889fb4ee3d3 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 7 Aug 2024 16:56:52 +0200 Subject: [PATCH 2/3] Trailspace plugin to highlight trailing whitespaces --- lua/plugins/mini.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua index f7fd466..fe7ec4a 100644 --- a/lua/plugins/mini.lua +++ b/lua/plugins/mini.lua @@ -33,6 +33,11 @@ return { -- Collection of various small independent plugins/modules -- as well as # and * searches require('mini.cursorword').setup() + -- Trailspace: highlight trailing whitespace + -- Trim all trailing whitespace with MiniTrailspace.trim(). + -- Trim all trailing empty lines with MiniTrailspace.trim_last_lines(). + require('mini.trailspace').setup() + -- Simple and easy statusline. -- You could remove this setup call if you don't like it, -- and try some other statusline plugin From 28d4787d085a32f4e8013134e294b4dd5e3428ba Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 7 Aug 2024 16:57:04 +0200 Subject: [PATCH 3/3] Enable inlay hints by default --- lua/plugins/nvim-lspconfig.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins/nvim-lspconfig.lua b/lua/plugins/nvim-lspconfig.lua index 5ef9985..677618c 100644 --- a/lua/plugins/nvim-lspconfig.lua +++ b/lua/plugins/nvim-lspconfig.lua @@ -138,6 +138,7 @@ return { -- LSP Configuration & Plugins -- -- This may be unwanted, since they displace some of your code if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then + vim.lsp.inlay_hint.enable(true) map('th', function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) end, '[T]oggle Inlay [H]ints')