-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] lsp signature help supports (#40), but default is disabled
* [feat]: LSP Signature help support, but default is disabled
- Loading branch information
1 parent
83b2b48
commit 1e29734
Showing
9 changed files
with
417 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- lsp request err not handle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,54 @@ | ||
-- TODO: complete this | ||
local api, fn = vim.api, vim.fn | ||
local config = require("LspUI.config") | ||
local lib_notify = require("LspUI.lib.notify") | ||
local util = require("LspUI.signature.util") | ||
|
||
local M = {} | ||
|
||
local is_initialized = false | ||
|
||
M.init = function() | ||
if not config.options.signature.enable then | ||
return | ||
end | ||
|
||
if is_initialized then | ||
return | ||
end | ||
|
||
is_initialized = true | ||
|
||
local hl_val = { | ||
fg = config.options.signature.color.fg, | ||
italic = true, | ||
-- standout = true, | ||
undercurl = true, | ||
} | ||
|
||
if config.options.signature.color.bg then | ||
hl_val.fg = config.options.signature.color.bg | ||
end | ||
api.nvim_set_hl(0, "LspUI_Signature", hl_val) | ||
|
||
-- init autocmd | ||
util.autocmd() | ||
end | ||
|
||
M.deinit = function() | ||
if not is_initialized then | ||
lib_notify.Info("signature has been deinit") | ||
end | ||
|
||
is_initialized = false | ||
|
||
-- remove autocmd | ||
util.deautocmd() | ||
end | ||
|
||
M.run = function() | ||
lib_notify.Info("signature has no run func") | ||
end | ||
|
||
M.status_line = util.status_line | ||
|
||
return M |
Oops, something went wrong.