Compare commits

...

3 commits

Author SHA1 Message Date
Imbus
28d4787d08 Enable inlay hints by default 2024-08-07 16:57:04 +02:00
Imbus
972ba828f2 Trailspace plugin to highlight trailing whitespaces 2024-08-07 16:56:52 +02:00
Imbus
9b26df0189 Cursorword highlight from mini 2024-08-07 16:56:37 +02:00
2 changed files with 11 additions and 0 deletions

View file

@ -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

View file

@ -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('<leader>th', function()
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
end, '[T]oggle Inlay [H]ints')