diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua index 3c10141..fe7ec4a 100644 --- a/lua/plugins/mini.lua +++ b/lua/plugins/mini.lua @@ -28,6 +28,16 @@ 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() + + -- 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 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')