One more lsp_signature change

Thu, 11 Apr 2024 22:10:19 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 11 Apr 2024 22:10:19 -0500
changeset 1149
4af7c8156683
parent 1148
bca491e2be91
child 1150
52033d249bcb

One more lsp_signature change

.config/nvim/lua/config/maps.lua file | annotate | diff | comparison | revisions
.config/nvim/lua/plugins/lsp.lua file | annotate | diff | comparison | revisions
--- a/.config/nvim/lua/config/maps.lua
+++ b/.config/nvim/lua/config/maps.lua
@@ -88,7 +88,7 @@ vim.api.nvim_create_autocmd("LspAttach",
     map("n", "gd", vim.lsp.buf.definition, bufopts)
     map("n", "K", vim.lsp.buf.hover, bufopts)
     map("n", "gi", vim.lsp.buf.implementation, bufopts)
-    map({ "n", "i" }, "<F12>", vim.lsp.buf.signature_help, bufopts)
+    map("n", "<F12>", vim.lsp.buf.signature_help, bufopts)
     map("n", "<leader>wa", vim.lsp.buf.add_workspace_folder, bufopts)
     map("n", "<leader>wr", vim.lsp.buf.remove_workspace_folder, bufopts)
     map("n", "<leader>wl", function()
--- a/.config/nvim/lua/plugins/lsp.lua
+++ b/.config/nvim/lua/plugins/lsp.lua
@@ -59,6 +59,7 @@ return {
     lazy = true,
     opts = {
       toggle_key = "<F12>",
+      select_signature_key = "<M-n>",
       toggle_key_flip_floatwin_setting = true,
       doc_lines = 0,
       floating_window = true,

mercurial