-
Notifications
You must be signed in to change notification settings - Fork 0
Enable Notifications
The enable_notifications
configuration option allows you to control whether notifications are displayed when certain actions occur within the typewriter.nvim
plugin. By default, notifications are enabled, but you can turn them off if you prefer a quieter experience.
To configure enable_notifications
, you can pass it as part of the setup configuration in your Neovim configuration file.
Here's an example of how to set up the typewriter.nvim
plugin with enable_notifications
enabled or disabled:
require('typewriter').setup({
enable_notifications = true, -- Enable notifications
})
require('typewriter').setup({
enable_notifications = false, -- Disable notifications
})
When enable_notifications
is set to true
, the following actions will trigger notifications:
- Enabling Typewriter Mode: A notification with the message "Typewriter mode enabled" will be displayed.
- Disabling Typewriter Mode: A notification with the message "Typewriter mode disabled" will be displayed.
-
Centering the Code Block: A notification with the message "Code block centered" will be displayed when the
:TWCenter
command is used. -
Aligning the Code Block with the Top: A notification with the message "Code block aligned with the top" will be displayed when the
:TWTop
command is used. -
Aligning the Code Block with the Bottom: A notification with the message "Code block aligned with the bottom" will be displayed when the
:TWBottom
command is used.
- Immediate Feedback: Notifications provide immediate feedback, helping you to know the status of the typewriter mode and the position of code blocks.
- Customizable Experience: By enabling or disabling notifications, you can customize your Neovim experience to suit your preferences.
If you are using notification plugins like Noice
or Notify
, these notifications will be captured and displayed according to the configuration of those plugins, providing a seamless and integrated experience.
The enable_notifications
option is a flexible way to enhance your interaction with the typewriter.nvim
plugin. Whether you prefer having notifications for immediate feedback or a quieter workspace, this option gives you the control to tailor your environment to your needs.
Thank you for exploring the Typewriter.nvim documentation. We hope you find this plugin enhances your writing and coding experience in Neovim. If you have any questions, suggestions, or contributions, please feel free to reach out or submit an issue on our GitHub repository.
Stay Connected:
Crafted with care by Josh Peterson.