.config/nvim/lua/config/maps.lua

changeset 1148
bca491e2be91
parent 1128
30d81fbc6a7b
child 1149
4af7c8156683
equal deleted inserted replaced
1147:23f9b157fe8a 1148:bca491e2be91
86 86
87 map("n", "gD", vim.lsp.buf.declaration, bufopts) 87 map("n", "gD", vim.lsp.buf.declaration, bufopts)
88 map("n", "gd", vim.lsp.buf.definition, bufopts) 88 map("n", "gd", vim.lsp.buf.definition, bufopts)
89 map("n", "K", vim.lsp.buf.hover, bufopts) 89 map("n", "K", vim.lsp.buf.hover, bufopts)
90 map("n", "gi", vim.lsp.buf.implementation, bufopts) 90 map("n", "gi", vim.lsp.buf.implementation, bufopts)
91 map("n", "<F12>", vim.lsp.buf.signature_help, bufopts) 91 map({ "n", "i" }, "<F12>", vim.lsp.buf.signature_help, bufopts)
92 map("n", "<leader>wa", vim.lsp.buf.add_workspace_folder, bufopts) 92 map("n", "<leader>wa", vim.lsp.buf.add_workspace_folder, bufopts)
93 map("n", "<leader>wr", vim.lsp.buf.remove_workspace_folder, bufopts) 93 map("n", "<leader>wr", vim.lsp.buf.remove_workspace_folder, bufopts)
94 map("n", "<leader>wl", function() 94 map("n", "<leader>wl", function()
95 print(vim.inspect(vim.lsp.buf.list_workspace_folders())) 95 print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
96 end, bufopts) 96 end, bufopts)

mercurial