feat(UI): keymaps & lualine

This commit is contained in:
Michel 2023-10-10 17:30:55 +02:00
parent 904769aade
commit e2dc148bdd
3 changed files with 21 additions and 3 deletions

View File

@ -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" }, "<space>", "<c-f>", { remap = true })
-- Restore default vim behaviour
vim.keymap.del("n", "<S-h>")
vim.keymap.del("n", "<S-l>")
-- 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

View File

@ -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
--

View File

@ -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")