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

changeset 1177
93b5d2db30bc
parent 1175
7907b9c30399
equal deleted inserted replaced
1176:1cb4636d6d36 1177:93b5d2db30bc
113 bmap("n", "<leader>lr", vim.lsp.buf.references, "List References") 113 bmap("n", "<leader>lr", vim.lsp.buf.references, "List References")
114 bmap({ "n", "x" }, "<leader>f", function() 114 bmap({ "n", "x" }, "<leader>f", function()
115 vim.lsp.buf.format({ async = true }) 115 vim.lsp.buf.format({ async = true })
116 end, "LSP Format") 116 end, "LSP Format")
117 117
118 bmap("n", "<leader>ih", function()
119 vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
120 end, "Toggle Inlay Hints")
121
118 local code_actions = require("actions-preview").code_actions 122 local code_actions = require("actions-preview").code_actions
119 bmap("n", "crr", code_actions, "Code Actions") 123 bmap("n", "crr", code_actions, "Code Actions")
120 bmap("x", "<C-R><C-R>", code_actions, "Code Actions") 124 bmap("x", "<C-R><C-R>", code_actions, "Code Actions")
121 bmap("x", "<C-R>", code_actions, "Code Actions") 125 bmap("x", "<C-R>", code_actions, "Code Actions")
122 end, 126 end,

mercurial