From fcfe2d06173d77fbbec87f2759f7b92e1720ac52 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 5 Feb 2023 00:36:44 +0100 Subject: [PATCH] with ranger --- README.md | 5 ++--- lazy-lock.json | 4 +++- lua/config/keymaps.lua | 2 +- lua/plugins/ranger.lua | 9 +++++++++ lua/plugins/rust-tools.lua | 17 +++++++++++++++++ 5 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 lua/plugins/ranger.lua create mode 100644 lua/plugins/rust-tools.lua diff --git a/README.md b/README.md index 185280b..23bcba3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -# 💤 LazyVim +# Kjuulh Lazy git fork + -A starter template for [LazyVim](https://github.com/LazyVim/LazyVim). -Refer to the [documentation](https://lazyvim.github.io/installation) to get started. diff --git a/lazy-lock.json b/lazy-lock.json index 6bbd529..223302a 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -15,7 +15,7 @@ "lazy.nvim": { "branch": "main", "commit": "9b208696e139a404d159963b975a5b90af38439b" }, "lualine.nvim": { "branch": "master", "commit": "0050b308552e45f7128f399886c86afefc3eb988" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "53f3a8bdcb77d4a95b082fd57e12173f353c6c3e" }, - "mason.nvim": { "branch": "main", "commit": "9ec92c1945b11ba7e7e6730fd60fd44525f24a25" }, + "mason.nvim": { "branch": "main", "commit": "9aaadcf12af081ff28d8c064d4b8835b51a64235" }, "mini.ai": { "branch": "main", "commit": "270d5b8eb61e4aeede7a8591fdc72db824b0cfd7" }, "mini.bufremove": { "branch": "main", "commit": "f651349d730c17ecdbef5a91c590779fb307ee37" }, "mini.comment": { "branch": "main", "commit": "137cf43aaaed41c733a8e0087fab6ee08bb45293" }, @@ -39,6 +39,8 @@ "nvim-web-devicons": { "branch": "master", "commit": "2b96193abe4372e18e4f4533895a42a466d53c17" }, "persistence.nvim": { "branch": "main", "commit": "d8a3eda0e19b4d5f3180fc832c25baab1709f2a1" }, "plenary.nvim": { "branch": "master", "commit": "9a0d3bf7b832818c042aaf30f692b081ddd58bd9" }, + "ranger.nvim": { "branch": "main", "commit": "82dd670c0e4867419969cb55bd9c3a5e7ea73ddc" }, + "rust-tools.nvim": { "branch": "master", "commit": "b297167d9e01accc9b9afe872ce91e791df2dde0" }, "telescope.nvim": { "branch": "master", "commit": "203bf5609137600d73e8ed82703d6b0e320a5f36" }, "todo-comments.nvim": { "branch": "main", "commit": "74c7d28cb50b0713c881ef69bcb6cdd77d8907d1" }, "toggleterm.nvim": { "branch": "main", "commit": "19aad0f41f47affbba1274f05e3c067e6d718e1e" }, diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index fe5b809..13be583 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -6,7 +6,7 @@ function _G.set_terminal_keymaps() local opts = { buffer = 0 } vim.keymap.set("t", "", [[]], opts) - vim.keymap.set("t", "jk", [[]], opts) + --vim.keymap.set("t", "jk", [[]], opts) vim.keymap.set("t", "", [[wincmd h]], opts) vim.keymap.set("t", "", [[wincmd j]], opts) vim.keymap.set("t", "", [[wincmd k]], opts) diff --git a/lua/plugins/ranger.lua b/lua/plugins/ranger.lua new file mode 100644 index 0000000..199eb5f --- /dev/null +++ b/lua/plugins/ranger.lua @@ -0,0 +1,9 @@ +return { + "kjuulh/ranger.nvim", + config = function() + require("ranger").setup() + end, + keys = { + { ".", "Ranger", "Opens the ranger file manager" }, + }, +} diff --git a/lua/plugins/rust-tools.lua b/lua/plugins/rust-tools.lua new file mode 100644 index 0000000..9198123 --- /dev/null +++ b/lua/plugins/rust-tools.lua @@ -0,0 +1,17 @@ +return { + "simrat39/rust-tools.nvim", + config = function() + local rt = require("rust-tools") + + rt.setup({ + server = { + on_attach = function(_, bufnr) + -- Hover actions + vim.keymap.set("n", "", rt.hover_actions.hover_actions, { buffer = bufnr }) + -- Code action groups + vim.keymap.set("n", "a", rt.code_action_group.code_action_group, { buffer = bufnr }) + end, + }, + }) + end, +}