Autocommit 2024-53-25 03:53:46

This commit is contained in:
2024-03-25 03:53:46 +01:00
parent 1774959a5e
commit b07c0f80a3

View File

@@ -1,18 +1,18 @@
vim.g.mapleader = " " vim.g.mapleader = " "
vim.opt.title = true vim.opt.title = true
vim.opt.mouse="" vim.opt.mouse = ""
vim.opt.wrap = true vim.opt.wrap = true
vim.opt.fileencoding = "utf-8" vim.opt.fileencoding = "utf-8"
vim.opt.clipboard = "unnamedplus" vim.opt.clipboard = "unnamedplus"
vim.opt.completeopt = {"menu", "menuone", "preview", "noselect"} vim.opt.completeopt = { "menu", "menuone", "preview", "noselect" }
vim.opt.termguicolors = false vim.opt.termguicolors = false
vim.opt.laststatus = 3 vim.opt.laststatus = 3
--- Search --- Search
vim.opt.ignorecase=true vim.opt.ignorecase = true
vim.opt.smartcase=true vim.opt.smartcase = true
--- Numbers --- Numbers
vim.opt.number=true vim.opt.number = true
vim.opt.relativenumber=true vim.opt.relativenumber = true
--- Tab Options --- Tab Options
vim.opt.smartindent = true vim.opt.smartindent = true
vim.opt.smarttab = true vim.opt.smarttab = true
@@ -32,7 +32,6 @@ vim.opt.sidescrolloff = 8
--- Swapfile --- Swapfile
vim.opt.swapfile = false vim.opt.swapfile = false
vim.opt.backup = false vim.opt.backup = false
--- Keymap --- Keymap
-- Resource -- Resource
vim.keymap.set("n", "<leader>r", ":source ~/.config/nvim/init.lua<cr>") vim.keymap.set("n", "<leader>r", ":source ~/.config/nvim/init.lua<cr>")
@@ -47,7 +46,7 @@ vim.keymap.set("n", "<M-O>b", "<C-w>j")
vim.keymap.set("n", "-", ":vertical resize -3<cr>") vim.keymap.set("n", "-", ":vertical resize -3<cr>")
vim.keymap.set("n", "+", ":vertical resize +3<cr>") vim.keymap.set("n", "+", ":vertical resize +3<cr>")
-- Buffer -- Buffer
vim.keymap.set("n", "<Tab>", ":buffer ") vim.keymap.set("n", "<Tab>", ":buffer ")
-- Tabs -- Tabs
vim.keymap.set("n", "<leader>tn", ":tabnew<cr>") vim.keymap.set("n", "<leader>tn", ":tabnew<cr>")
vim.keymap.set("n", "<leader>tc", ":tabclose<cr>") vim.keymap.set("n", "<leader>tc", ":tabclose<cr>")
@@ -79,28 +78,28 @@ local function command(cmd)
end end
vim.o.statusline = "%#StatusNormal# " vim.o.statusline = "%#StatusNormal# "
.. "%#StatusGitBranch#" .. "%#StatusGitBranch#"
.. command("git branch 2> /dev/null | sed -e 's/..//'") .. command("git branch 2> /dev/null | sed -e 's/..//'")
.. "%#StatusNormal# " .. "%#StatusNormal# "
.. "%#StatusGitDiffAdd#" .. "%#StatusGitDiffAdd#"
.. command("git diff --numstat | awk '{print \"+\"$1}'") .. command("git diff --numstat | awk '{print \"+\"$1}'")
.. "%#StatusNormal# " .. "%#StatusNormal# "
.. "%#StatusGitDiffRemove#" .. "%#StatusGitDiffRemove#"
.. command("git diff --numstat | awk '{print \"-\"$2}'") .. command("git diff --numstat | awk '{print \"-\"$2}'")
.. "%#StatusNormal# " .. "%#StatusNormal# "
.. ">>" .. ">>"
.. " %F " .. " %F "
.. "%#StatusModified#" .. "%#StatusModified#"
.. "%M" .. "%M"
.. "%#StatusNormal#" .. "%#StatusNormal#"
.. " >>" .. " >>"
.. "%=" .. "%="
.. "<<" .. "<<"
.. " %Y " .. " %Y "
.. "<<" .. "<<"
.. " %l,%c " .. " %l,%c "
.. "<<" .. "<<"
.. " %p%% " .. " %p%% "