diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index c0feb2d9..c03c971b 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -64,6 +64,11 @@ map("n", "", "$", { desc = "Last character of Line" }) -- Copy whole text to clipboard map("n", "", ":%y+", { desc = "Copy whole text to clipboard", silent = true }) +-- Motion +map("c", "", "", { desc = "Start Of Line" }) +map("i", "", "", { desc = "Start Of Line" }) +map("i", "", "", { desc = "End Of Line" }) + -- Select all text map("n", "", "ggG", { desc = "Select all text", silent = true, noremap = true }) @@ -71,6 +76,10 @@ map("n", "", "ggG", { desc = "Select all text", silent = true, noremap map("i", "", '"', { desc = "Paste on insert mode" }) map("v", "p", '"_dP', { desc = "Paste without overwriting" }) +-- Delete and change without yanking +map({ "n", "x" }, "", '"_d', { desc = "Delete without yanking" }) +map({ "n", "x" }, "", '"_c', { desc = "Change without yanking" }) + -- Deleting without yanking empty line map("n", "dd", function() local is_empty_line = vim.api.nvim_get_current_line():match("^%s*$") @@ -162,12 +171,4 @@ if package.loaded["cinnamon"] then map({ "n", "x" }, "l", "lua Scroll('l', 0, 1)") map({ "n", "x" }, "", "lua Scroll('h', 0, 1)") map({ "n", "x" }, "", "lua Scroll('l', 0, 1)") - - -- LSP_KEYMAPS: - - -- LSP go-to-definition: - map("n", "gd", "lua Scroll('definition')") - - -- LSP go-to-declaration: - map("n", "gD", "lua Scroll('declaration')") end diff --git a/.config/nvim/lua/plugins/bufferline.lua b/.config/nvim/lua/plugins/bufferline.lua index 305d80b5..6f880529 100644 --- a/.config/nvim/lua/plugins/bufferline.lua +++ b/.config/nvim/lua/plugins/bufferline.lua @@ -3,6 +3,9 @@ return { keys = { { "[B", "BufferLineMovePrev", desc = "Move buffer prev" }, { "]B", "BufferLineMoveNext", desc = "Move buffer next" }, + { ".", "BufferLinePick", desc = "Pick Buffer" }, + { "bS", "BufferLineSortByDirectory", desc = "Sort By Directory" }, + { "bs", "BufferLineSortByExtension", desc = "Sort By Extensions" }, { "b1", "BufferLineGoToBuffer 1", desc = "Buffer 1" }, { "b2", "BufferLineGoToBuffer 2", desc = "Buffer 2" }, { "b3", "BufferLineGoToBuffer 3", desc = "Buffer 3" }, diff --git a/.config/nvim/lua/plugins/dashboard.lua b/.config/nvim/lua/plugins/dashboard.lua index de3974ee..3a153fb2 100644 --- a/.config/nvim/lua/plugins/dashboard.lua +++ b/.config/nvim/lua/plugins/dashboard.lua @@ -18,4 +18,7 @@ return { opts.config.header = vim.split(logo, "\n") return opts end, + keys = { + { "fd", "Dash", desc = "Dashboard" }, + }, } diff --git a/.config/nvim/lua/plugins/extras/editor/oil.lua b/.config/nvim/lua/plugins/extras/editor/oil.lua index 936a1997..355eeef0 100644 --- a/.config/nvim/lua/plugins/extras/editor/oil.lua +++ b/.config/nvim/lua/plugins/extras/editor/oil.lua @@ -9,6 +9,6 @@ return { }, -- stylua: ignore keys = { - { ";", function() require("oil").toggle_float() end, desc = "Toggle oil" }, + { "", function() require("oil").toggle_float() end, desc = "Toggle oil" }, }, }