Move lsp_signature config into the config file

This commit is contained in:
2023-09-15 22:31:05 +02:00
parent 3432c8f20e
commit 086c86e5ba
2 changed files with 9 additions and 10 deletions
-9
View File
@@ -117,15 +117,6 @@ function P.on_attach(client, bufnr)
-- Disabled in favor of nvim-cmp
-- 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.
-- See `:help vim.lsp.*` for documentation on any of the below functions
local opts = { silent = true, buffer = bufnr, }
+9 -1
View File
@@ -16,4 +16,12 @@
-- 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,
})