Skip to content

Commit

Permalink
feat(default-highlighting): Adds default highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
drumenov committed Apr 5, 2024
1 parent 6b02341 commit 41dd5ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/lsp-overloads/handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ local mappings = require("lsp-overloads.mappings")

local M = {}

vim.api.nvim_set_hl(0, "LspSignatureActiveParameter", settings.current.ui.highlight)

--- Helper function to prevent multiple signature popups from opening whilst entering a tuple argument.
--- Makes the assumption that the language calls functions using parentheses, and tuples / argument lists are also enclosed in parentheses.
---@param line_to_cursor string The text contained in the line up to the current cursor position
Expand Down
4 changes: 4 additions & 0 deletions lua/lsp-overloads/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ local DEFAULT_SETTINGS = {
offset_y = 0,
silent = true,
floating_window_above_cur_line = false,
highlight = {
italic=true,
bold=true,
}
},
keymaps = {
next_signature = "<C-j>",
Expand Down

0 comments on commit 41dd5ca

Please sign in to comment.