From e557dc3af9f4ec8f450a0f99fc19a27b9eb27698 Mon Sep 17 00:00:00 2001 From: Freyskeyd Date: Mon, 2 May 2022 15:33:17 +0200 Subject: [PATCH] Fixing lsp mapping to use leader instead of space Signed-off-by: Freyskeyd --- lua/core/mappings.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 5b1bd46..f7a7303 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -129,15 +129,15 @@ M.lspconfig = function() vim.lsp.buf.signature_help() end) - map("n", "D", function() + map("n", "D", function() vim.lsp.buf.type_definition() end) - map("n", "ra", function() + map("n", "ra", function() vim.lsp.buf.rename() end) - map("n", "ca", function() + map("n", "ca", function() vim.lsp.buf.code_action() end) @@ -145,7 +145,7 @@ M.lspconfig = function() vim.lsp.buf.references() end) - map("n", "f", function() + map("n", "f", function() vim.diagnostic.open_float() end) @@ -157,23 +157,23 @@ M.lspconfig = function() vim.diagnostic.goto_next() end) - map("n", "q", function() + map("n", "q", function() vim.diagnostic.setloclist() end) - map("n", "fm", function() + map("n", "fm", function() vim.lsp.buf.formatting() end) - map("n", "wa", function() + map("n", "wa", function() vim.lsp.buf.add_workspace_folder() end) - map("n", "wr", function() + map("n", "wr", function() vim.lsp.buf.remove_workspace_folder() end) - map("n", "wl", function() + map("n", "wl", function() print(vim.inspect(vim.lsp.buf.list_workspace_folders())) end) end