1
0
mirror of https://github.com/sameer1612/.dotfiles.git synced 2025-02-19 19:10:07 +02:00

added split maximizer

This commit is contained in:
Sameer Kumar 2023-10-08 11:08:00 +05:30
parent 01b5d2e755
commit 100a32dafe
3 changed files with 16 additions and 0 deletions

View File

@ -19,6 +19,7 @@
"mason-lspconfig.nvim": { "branch": "main", "commit": "e2705063f395b44f676cd26596a11007a2cbd3bd" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "83dcddb6477f9ba5db98971ef27bd18bdca921b4" },
"mason.nvim": { "branch": "main", "commit": "d66c60e17dd6fd8165194b1d14d21f7eb2c1697a" },
"maximize.nvim": { "branch": "master", "commit": "97bfc171775c404396f8248776347ebe64474fe7" },
"noice.nvim": { "branch": "main", "commit": "fcd01710ff6918d4d3ef90c8e36f3addacba13bf" },
"nui.nvim": { "branch": "main", "commit": "c8de23342caf8d50b15d6b28368d36a56a69d76f" },
"nvim-autopairs": { "branch": "master", "commit": "748e72c05495a3d30e88a6ef04b21697019a9aa9" },

View File

@ -1,3 +1,7 @@
local function maximize_status()
return vim.t.maximized and "" or ""
end
return {
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
@ -8,6 +12,7 @@ return {
theme = "gruvbox-material",
},
sections = {
lualine_c = { { "filename" }, { maximize_status } },
lualine_x = {
{ "filetype" },
{

View File

@ -0,0 +1,10 @@
return {
"declancm/maximize.nvim",
config = function()
require("maximize").setup({
default_keymaps = false,
})
vim.keymap.set("n", "<leader>m", "<Cmd>lua require('maximize').toggle()<CR>")
end,
}