diff --git a/lazy-lock.json b/lazy-lock.json index 827b7f9..9234273 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,5 +1,5 @@ { - "LuaSnip": { "branch": "master", "commit": "45db5addf8d0a201e1cf247cae4cdce605ad3768" }, + "LuaSnip": { "branch": "master", "commit": "e808bee352d1a6fcf902ca1a71cee76e60e24071" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" }, "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, @@ -9,15 +9,15 @@ "fidget.nvim": { "branch": "main", "commit": "d855eed8a06531a7e8fd0684889b2943f373c469" }, "harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" }, "hererocks": { "branch": "master", "commit": "8bd2fcfdd65cfa7535ce39ea372a63b0bdb8e528" }, - "lazy.nvim": { "branch": "main", "commit": "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" }, + "lazy.nvim": { "branch": "main", "commit": "1159bdccd8910a0fd0914b24d6c3d186689023d9" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, - "nvim-lspconfig": { "branch": "master", "commit": "d88ae6623fef09251e3aa20001bb761686eae730" }, - "nvim-treesitter": { "branch": "master", "commit": "b6a6d8997c46dc15682020ce4fddc5a89ee1ac0d" }, - "plenary": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" }, - "plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" }, + "nvim-lspconfig": { "branch": "master", "commit": "04680101ff79e99b4e33a4386ec27cbd0d360c75" }, + "nvim-treesitter": { "branch": "master", "commit": "45e0d66246f31306d890b91301993fa1623e79f1" }, + "plenary": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, + "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, - "undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" }, + "undotree": { "branch": "master", "commit": "78b5241191852ffa9bb5da5ff2ee033160798c3b" }, "vim-fugitive": { "branch": "master", "commit": "d4877e54cef67f5af4f950935b1ade19ed6b7370" } } diff --git a/lua/flip/remap.lua b/lua/flip/remap.lua index cf67115..ba36398 100644 --- a/lua/flip/remap.lua +++ b/lua/flip/remap.lua @@ -10,12 +10,36 @@ vim.keymap.set("v", "K", ":m '<-2gv=gv") -- Slide lines below into the current one vim.keymap.set("n", "J", "mzJ`z") +--- LSP settings --- +-- Show hover text of symbol +vim.keymap.set("n", "K", vim.lsp.buf.hover) + +-- Go to definition of symbol +vim.keymap.set("n", "gd", vim.lsp.buf.definition) + +-- Go to declaration of symbol +vim.keymap.set("n", "gD", vim.lsp.buf.declaration) + +-- List all implementations for symbol in quickfix window +vim.keymap.set("n", "gi", vim.lsp.buf.implementation) + +-- Go to definition of type of symbol +vim.keymap.set("n", "go", vim.lsp.buf.type_definition) + +-- Go to references of symbol +vim.keymap.set("n", "gr", vim.lsp.buf.references) + +-- Select code action at symbol +vim.keymap.set("n", "ca", vim.lsp.buf.code_action) + -- Auto formatting vim.keymap.set("n", "f", vim.lsp.buf.format) -- Display type signature vim.keymap.set("n", "gs", vim.lsp.buf.signature_help) +--- End of LSP setings --- + -- Greatest remap ever -- Delete visual selection to null and paste latest clipboard entry vim.keymap.set("x", "p", [["_dP]])