Move lsp_signature config into the config file
This commit is contained in:
@@ -117,15 +117,6 @@ function P.on_attach(client, bufnr)
|
|||||||
-- Disabled in favor of nvim-cmp
|
-- Disabled in favor of nvim-cmp
|
||||||
-- vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
-- vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||||
|
|
||||||
local ok, lsp_signature = pcall(require, "lsp_signature")
|
|
||||||
if ok then
|
|
||||||
lsp_signature.on_attach({
|
|
||||||
doc_lines = 20,
|
|
||||||
hint_enable = false,
|
|
||||||
toggle_key = "<C-e>",
|
|
||||||
}, bufnr)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Mappings.
|
-- Mappings.
|
||||||
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
||||||
local opts = { silent = true, buffer = bufnr, }
|
local opts = { silent = true, buffer = bufnr, }
|
||||||
|
|||||||
@@ -16,4 +16,12 @@
|
|||||||
|
|
||||||
-- https://github.com/ray-x/lsp_signature.nvim
|
-- https://github.com/ray-x/lsp_signature.nvim
|
||||||
|
|
||||||
require("lsp_signature").setup()
|
require("lsp_signature").setup({
|
||||||
|
doc_lines = 20,
|
||||||
|
toggle_key = "<C-e>",
|
||||||
|
hint_enable = false,
|
||||||
|
floating_window = true,
|
||||||
|
floating_window_above_cur_line = true,
|
||||||
|
floating_window_off_x = 0,
|
||||||
|
floating_window_off_y = 0,
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user