chore: add missing files

This commit is contained in:
Muhammad Nauman Raza 2024-01-16 20:37:03 +00:00
parent 3d4968c861
commit eb37c41959
Signed by: devraza
GPG key ID: 91EAD6081011574B
2 changed files with 70 additions and 0 deletions

30
lua/core/keybinds.lua Normal file
View file

@ -0,0 +1,30 @@
local wk = require("which-key")
wk.register({
f = {
name = "file",
f = { "<cmd>Telescope find_files<cr>", "Find File" },
g = { "<cmd>Telescope live_grep<cr>", "Find Word" },
s = { "<cmd>:w<cr>", "Write" },
w = { "<cmd>:w!<cr>", "Force Write" },
e = { ":e ", "Edit File", silent = false },
},
t = {
name = "tabs",
n = { "<cmd>tabnew<cr>", "New Tab" },
j = { "<cmd>tabprev<cr>", "Previous Tab" },
k = { "<cmd>tabnext<cr>", "Next Tab" },
},
l = {
name = "lazy",
u = { "<cmd>Lazy update<cr>", "Update" },
s = { "<cmd>Lazy sync<cr>", "Sync" },
},
g = {
name = "git",
p = { "<cmd>Neogit cwd=%:p:h push<cr>", "Push Popup" },
c = { "<cmd>Neogit cwd=%:p:h commit<cr>", "Commit Popup" },
},
["."] = { ":e ", "Edit File", silent = false },
}, { prefix = "<leader>" })

40
lua/core/lualine.lua Normal file
View file

@ -0,0 +1,40 @@
require('lualine').setup {
options = {
icons_enabled = true,
theme = 'auto',
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = {
statusline = {},
winbar = {},
},
ignore_focus = {},
always_divide_middle = true,
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
}
},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch', 'diff', 'diagnostics'},
lualine_c = {'filename'},
lualine_x = {'encoding'},
lualine_y = {'progress'},
lualine_z = {'location'}
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {'filename'},
lualine_x = {'location'},
lualine_y = {},
lualine_z = {}
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {}
}