feat(UI): keymaps & lualine
This commit is contained in:
parent
904769aade
commit
e2dc148bdd
@ -9,6 +9,20 @@ local map = vim.keymap.set
|
|||||||
map({ "n", "x" }, "(", "[", { desc = "➤ [", remap = true })
|
map({ "n", "x" }, "(", "[", { desc = "➤ [", remap = true })
|
||||||
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
|
-- Restore default vim behaviour
|
||||||
vim.keymap.del("n", "<S-h>")
|
vim.keymap.del("n", "<S-h>")
|
||||||
vim.keymap.del("n", "<S-l>")
|
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
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
-- Options are automatically loaded before lazy.nvim startup
|
-- Options are automatically loaded before lazy.nvim startup
|
||||||
-- Default options: $HOME/.local/share/nvim/lazy/LazyVim/lua/lazyvim/config/options.lua
|
-- Default options: $HOME/.local/share/nvim/lazy/LazyVim/lua/lazyvim/config/options.lua
|
||||||
|
|
||||||
|
vim.g.mapleader = "²"
|
||||||
|
vim.g.maplocalleader = "³"
|
||||||
|
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
|
|
||||||
opt.autowrite = false
|
opt.autowrite = false
|
||||||
@ -10,6 +13,7 @@ opt.foldexpr = "nvim_treesitter#foldexpr()"
|
|||||||
opt.foldmethod = "expr"
|
opt.foldmethod = "expr"
|
||||||
opt.tabstop = 8
|
opt.tabstop = 8
|
||||||
opt.whichwrap = "b,s,<,>,[,]"
|
opt.whichwrap = "b,s,<,>,[,]"
|
||||||
|
opt.wrapscan = false
|
||||||
|
|
||||||
-- filetype
|
-- filetype
|
||||||
--
|
--
|
||||||
|
@ -22,12 +22,12 @@ return {
|
|||||||
highlight = {
|
highlight = {
|
||||||
groups = {
|
groups = {
|
||||||
InclineNormal = { guibg = "#742b3c", guifg = "#000" },
|
InclineNormal = { guibg = "#742b3c", guifg = "#000" },
|
||||||
InclineNormalNC = { guifg = "#e95678", guibg = "#000" },
|
InclineNormalNC = { guifg = "#e95678", guibg = "#303030" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
window = {
|
window = {
|
||||||
margin = { vertical = 0, horizontal = 1 },
|
margin = { vertical = 0, horizontal = 0 },
|
||||||
placement = { vertical = "bottom" },
|
placement = { vertical = "bottom", horizontal = "left" },
|
||||||
},
|
},
|
||||||
render = function(props)
|
render = function(props)
|
||||||
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ":t")
|
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ":t")
|
||||||
|
Loading…
Reference in New Issue
Block a user