From e2dc148bddd603623bedea40d0eecbaa2f373478 Mon Sep 17 00:00:00 2001 From: Michel Date: Tue, 10 Oct 2023 17:30:55 +0200 Subject: [PATCH] feat(UI): keymaps & lualine --- lua/config/keymaps.lua | 14 ++++++++++++++ lua/config/options.lua | 4 ++++ lua/plugins/UI.lua | 6 +++--- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 1f1b76c..47a3095 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -9,6 +9,20 @@ local map = vim.keymap.set map({ "n", "x" }, "(", "[", { desc = "➤ [", remap = true }) map({ "n", "x" }, ")", "]", { desc = "➤ ]", remap = true }) +-- Browser like +map({ "n", "x" }, "", "", { remap = true }) + -- Restore default vim behaviour vim.keymap.del("n", "") vim.keymap.del("n", "") + +-- Normal, Visual, Select, Operator-pending +-- n Normal +-- x Visual +-- v Visual, Select +-- s Select: like Visual mode but typing text replaces the selection. +-- o Operator-pending +-- i Insert +-- l Insert, Command-line, Lang-Arg +-- c Command-line: When entering a ":" or "/" command. +-- t Terminal diff --git a/lua/config/options.lua b/lua/config/options.lua index e14bdc7..ea46f07 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -1,6 +1,9 @@ -- Options are automatically loaded before lazy.nvim startup -- Default options: $HOME/.local/share/nvim/lazy/LazyVim/lua/lazyvim/config/options.lua +vim.g.mapleader = "²" +vim.g.maplocalleader = "³" + local opt = vim.opt opt.autowrite = false @@ -10,6 +13,7 @@ opt.foldexpr = "nvim_treesitter#foldexpr()" opt.foldmethod = "expr" opt.tabstop = 8 opt.whichwrap = "b,s,<,>,[,]" +opt.wrapscan = false -- filetype -- diff --git a/lua/plugins/UI.lua b/lua/plugins/UI.lua index ab9aee0..b51204b 100644 --- a/lua/plugins/UI.lua +++ b/lua/plugins/UI.lua @@ -22,12 +22,12 @@ return { highlight = { groups = { InclineNormal = { guibg = "#742b3c", guifg = "#000" }, - InclineNormalNC = { guifg = "#e95678", guibg = "#000" }, + InclineNormalNC = { guifg = "#e95678", guibg = "#303030" }, }, }, window = { - margin = { vertical = 0, horizontal = 1 }, - placement = { vertical = "bottom" }, + margin = { vertical = 0, horizontal = 0 }, + placement = { vertical = "bottom", horizontal = "left" }, }, render = function(props) local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ":t")