summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/mutt/accounts/abdurrahmanfarza@student.purdueglobal.edu.muttrc38
-rw-r--r--.config/mutt/muttrc1
-rw-r--r--.config/nvim/ftplugin/lua.lua4
-rw-r--r--.config/nvim/ftplugin/markdown.lua4
-rw-r--r--.config/nvim/ftplugin/rust.lua4
-rw-r--r--.config/nvim/plugin-settings/nvim-treesitter.lua14
-rw-r--r--.config/nvim/regular.vim4
7 files changed, 52 insertions, 17 deletions
diff --git a/.config/mutt/accounts/abdurrahmanfarza@student.purdueglobal.edu.muttrc b/.config/mutt/accounts/abdurrahmanfarza@student.purdueglobal.edu.muttrc
new file mode 100644
index 0000000..a8f9dd3
--- /dev/null
+++ b/.config/mutt/accounts/abdurrahmanfarza@student.purdueglobal.edu.muttrc
@@ -0,0 +1,38 @@
+# vim: filetype=neomuttrc
+# muttrc file for account abdurrahmanfarza@student.purdueglobal.edu
+set realname = "Abdurrahman Farzat"
+set from = "abdurrahmanfarza@student.purdueglobal.edu"
+set sendmail = "msmtp -a abdurrahmanfarza@student.purdueglobal.edu"
+alias me Farzat <abdurrahmanfarza@student.purdueglobal.edu>
+set folder = "$MAILDIR/abdurrahmanfarza@student.purdueglobal.edu/"
+set header_cache = "$XDG_CACHE_HOME/mutt/abdurrahmanfarza@student.purdueglobal.edu/headers"
+set message_cachedir = "$XDG_CACHE_HOME/mutt/abdurrahmanfarza@student.purdueglobal.edu/bodies"
+set mbox_type = Maildir
+source "$XDG_CONFIG_HOME/mutt/switch.muttrc"
+set spoolfile = +INBOX
+set postponed = +[Gmail]/Drafts
+set trash = +[Gmail]/Bin
+set record = "+[Gmail]/Sent Mail"
+
+macro index o "<shell-escape>tmux split-window -dl 25% 'mailsync abdurrahmanfarza@student.purdueglobal.edu'<enter>" "run mbsync to sync abdurrahmanfarza@student.purdueglobal.edu"
+
+mailboxes `mdir="$MAILDIR/abdurrahmanfarza@student.purdueglobal.edu/"; find "$mdir" -mindepth 1 -type d -name cur | sed -e 's:/cur$:":' -e "s:$mdir:\"=:" | sort | tr '\n' ' '`
+
+macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
+macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
+macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
+macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "go to drafts"
+macro index,pager Md ";<save-message>=[Gmail]/Drafts<enter>" "move mail to drafts"
+macro index,pager Cd ";<copy-message>=[Gmail]/Drafts<enter>" "copy mail to drafts"
+macro index,pager gj "<change-folder>=[Gmail]/Spam<enter>" "go to junk"
+macro index,pager Mj ";<save-message>=[Gmail]/Spam<enter>" "move mail to junk"
+macro index,pager Cj ";<copy-message>=[Gmail]/Spam<enter>" "copy mail to junk"
+macro index,pager gt "<change-folder>=[Gmail]/Bin<enter>" "go to trash"
+macro index,pager Mt ";<save-message>=[Gmail]/Bin<enter>" "move mail to trash"
+macro index,pager Ct ";<copy-message>=[Gmail]/Bin<enter>" "copy mail to trash"
+macro index,pager gs "<change-folder>=[Gmail]/Sent Mail<enter>" "go to sent"
+macro index,pager Ms ";<save-message>=[Gmail]/Sent Mail<enter>" "move mail to sent"
+macro index,pager Cs ";<copy-message>=[Gmail]/Sent Mail<enter>" "copy mail to sent"
+macro index,pager ga "<change-folder>=Archive<enter>" "go to archive"
+macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to archive"
+macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to archive"
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
index 48502f2..1dcec26 100644
--- a/.config/mutt/muttrc
+++ b/.config/mutt/muttrc
@@ -7,3 +7,4 @@ macro index,pager i2 '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/mutt
macro index,pager i3 '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/mutt/accounts/Farzat.uni@outlook.com.muttrc"<enter><change-folder>!<enter>;<check-stats>' "switch to Farzat.uni@outlook.com"
macro index,pager i4 '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/mutt/accounts/Farzat@outlook.com.muttrc"<enter><change-folder>!<enter>;<check-stats>' "switch to Farzat@outlook.com"
macro index,pager i5 '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/mutt/accounts/ai.farzat@gmail.com.muttrc"<enter><change-folder>!<enter>;<check-stats>' "switch to ai.farzat@gmail.com"
+macro index,pager i6 '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/mutt/accounts/abdurrahmanfarza@student.purdueglobal.edu.muttrc"<enter><change-folder>!<enter>;<check-stats>' "switch to abdurrahmanfarza@student.purdueglobal.edu"
diff --git a/.config/nvim/ftplugin/lua.lua b/.config/nvim/ftplugin/lua.lua
new file mode 100644
index 0000000..84afdd8
--- /dev/null
+++ b/.config/nvim/ftplugin/lua.lua
@@ -0,0 +1,4 @@
+require('nvim-treesitter').install{ 'lua' }
+vim.treesitter.start()
+vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
+vim.wo[0][0].foldmethod = 'expr'
diff --git a/.config/nvim/ftplugin/markdown.lua b/.config/nvim/ftplugin/markdown.lua
new file mode 100644
index 0000000..82ac243
--- /dev/null
+++ b/.config/nvim/ftplugin/markdown.lua
@@ -0,0 +1,4 @@
+require('nvim-treesitter').install{ 'markdown' }
+vim.treesitter.start()
+vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
+vim.wo[0][0].foldmethod = 'expr'
diff --git a/.config/nvim/ftplugin/rust.lua b/.config/nvim/ftplugin/rust.lua
new file mode 100644
index 0000000..7634a86
--- /dev/null
+++ b/.config/nvim/ftplugin/rust.lua
@@ -0,0 +1,4 @@
+require('nvim-treesitter').install{ 'rust' }
+vim.treesitter.start()
+vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
+vim.wo[0][0].foldmethod = 'expr'
diff --git a/.config/nvim/plugin-settings/nvim-treesitter.lua b/.config/nvim/plugin-settings/nvim-treesitter.lua
index 4afe91e..2fd60d2 100644
--- a/.config/nvim/plugin-settings/nvim-treesitter.lua
+++ b/.config/nvim/plugin-settings/nvim-treesitter.lua
@@ -1,13 +1 @@
-require("nvim-treesitter.configs").setup({
- -- A list of parser names, or "all" (the four listed parsers should always be installed)
- ensure_installed = { "c", "lua", "vim" },
- ignore_install = { "org" },
-
- -- Automatically install missing parsers when entering buffer
- -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
- auto_install = true,
-
- highlight = {
- enable = true,
- },
-})
+require('nvim-treesitter').install({ 'c', 'lua', 'markdown', 'vim' }):wait(300000) -- wait max. 5 minutes
diff --git a/.config/nvim/regular.vim b/.config/nvim/regular.vim
index ff7b720..8bd792e 100644
--- a/.config/nvim/regular.vim
+++ b/.config/nvim/regular.vim
@@ -38,10 +38,6 @@ set noarabicshape
set keymap=arabic
set iminsert=0
-" Folding based on treesitter
-set foldmethod=expr
-set foldexpr=nvim_treesitter#foldexpr()
-
" Disable mouse.
set mouse=