diff --git a/lua/core/keybinds.lua b/lua/core/keybinds.lua new file mode 100644 index 0000000..879622a --- /dev/null +++ b/lua/core/keybinds.lua @@ -0,0 +1,30 @@ +local wk = require("which-key") + +wk.register({ + f = { + name = "file", + f = { "Telescope find_files", "Find File" }, + g = { "Telescope live_grep", "Find Word" }, + s = { ":w", "Write" }, + w = { ":w!", "Force Write" }, + + e = { ":e ", "Edit File", silent = false }, + }, + t = { + name = "tabs", + n = { "tabnew", "New Tab" }, + j = { "tabprev", "Previous Tab" }, + k = { "tabnext", "Next Tab" }, + }, + l = { + name = "lazy", + u = { "Lazy update", "Update" }, + s = { "Lazy sync", "Sync" }, + }, + g = { + name = "git", + p = { "Neogit cwd=%:p:h push", "Push Popup" }, + c = { "Neogit cwd=%:p:h commit", "Commit Popup" }, + }, + ["."] = { ":e ", "Edit File", silent = false }, +}, { prefix = "" }) diff --git a/lua/core/lualine.lua b/lua/core/lualine.lua new file mode 100644 index 0000000..8ad144c --- /dev/null +++ b/lua/core/lualine.lua @@ -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 = {} +}