-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
948 additions
and
948 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,36 +12,36 @@ vim.cmd('command! MakeCTags !ctags -R [email protected] .') | |
vim.cmd('language en_US.utf8') | ||
|
||
function SmallScreenModeToggle() | ||
if vim.wo.number then | ||
SmallScreenModeEnable() | ||
else | ||
SmallScreenModeDisable() | ||
end | ||
if vim.wo.number then | ||
SmallScreenModeEnable() | ||
else | ||
SmallScreenModeDisable() | ||
end | ||
end | ||
|
||
function SmallScreenModeEnable() | ||
vim.wo.number = false | ||
vim.wo.relativenumber = false | ||
vim.wo.signcolumn = 'no' | ||
vim.wo.number = false | ||
vim.wo.relativenumber = false | ||
vim.wo.signcolumn = 'no' | ||
end | ||
|
||
function SmallScreenModeDisable() | ||
vim.wo.number = true | ||
vim.wo.relativenumber = true | ||
vim.wo.signcolumn = 'yes' | ||
vim.wo.number = true | ||
vim.wo.relativenumber = true | ||
vim.wo.signcolumn = 'yes' | ||
end | ||
|
||
vim.api.nvim_create_user_command('SmallScreenModeToggle', SmallScreenModeToggle, | ||
{ | ||
{ | ||
desc = 'Toggle small screen mode to enable/disable maximizied screen usage' | ||
}) | ||
}) | ||
|
||
vim.api.nvim_create_user_command('SmallScreenModeEnable', SmallScreenModeEnable, | ||
{ | ||
{ | ||
desc = 'Enable small screen mode to maximize screen usage' | ||
}) | ||
}) | ||
|
||
vim.api.nvim_create_user_command('SmallScreenModeDisable', | ||
SmallScreenModeDisable, { | ||
SmallScreenModeDisable, { | ||
desc = 'Disable small screen mode to allow some gaps' | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.