diff --git a/global/.config/mutt/accounts/account.com.foozzione_gmail b/global/.config/mutt/accounts/account.com.foozzione_gmail new file mode 100644 index 0000000..cfe0e3f --- /dev/null +++ b/global/.config/mutt/accounts/account.com.foozzione_gmail @@ -0,0 +1,11 @@ +set from = "foozzione@gmail.com" +set realname = "Tkachenko Ihor" + +set mbox_type = Maildir +set folder = "$HOME/.local/share/email/foozzione_gmail" +set spoolfile = "+INBOX" +set postponed = "+[Gmail].Черновики" +set record = "+[Gmail].Отправленные" +set trash = "+[Gmail].Корзина" + +mailboxes =INBOX ='[Gmail].Вся почта' =[Gmail].Помеченные =[Gmail].Отправленные =[Gmail].Черновики =[Gmail].Корзина =[Gmail].Спам diff --git a/global/.config/mutt/accounts/account.com.fz0x1_posteo b/global/.config/mutt/accounts/account.com.fz0x1_posteo new file mode 100644 index 0000000..f2dc264 --- /dev/null +++ b/global/.config/mutt/accounts/account.com.fz0x1_posteo @@ -0,0 +1,11 @@ +set from = "fz0x1@posteo.net" +set realname = "fz0x1" + +set mbox_type = Maildir +set folder = "$HOME/.local/share/email/fz0x1_posteo" +set spoolfile = "+INBOX" +set postponed = "+Drafts" +set record = "+Sent" +set trash = "+Trash" + +mailboxes =INBOX =Sent =Service =Hosting =Keys =Drafts =Trash ='Receiving guarantee notifications' =Spam diff --git a/global/.config/mutt/gmail_isync.gpg b/global/.config/mutt/gmail_isync.gpg new file mode 100644 index 0000000..2fed802 Binary files /dev/null and b/global/.config/mutt/gmail_isync.gpg differ diff --git a/global/.config/mutt/muttrc b/global/.config/mutt/muttrc index cab5c10..af9cb95 100644 --- a/global/.config/mutt/muttrc +++ b/global/.config/mutt/muttrc @@ -1,5 +1,26 @@ -source ./settings source ./paths +# set debug_level = 5 +# set debug_file = "~/neomutt_debug.log" + +# default account +source "$HOME/.config/mutt/accounts/account.com.foozzione_gmail" + +folder-hook 'account.com.foozzione_gmail' 'source $HOME/.config/mutt/accounts/account.com.foozzione_gmail' +folder-hook 'account.com.fz0x1_posteo' 'source $HOME/.config/mutt/accounts/account.com.fz0x1_posteo' + +# Macros to switch accounts +macro index Q "unmailboxes *source $HOME/.config/mutt/accounts/account.com.foozzione_gmail!" +macro index P "unmailboxes *source $HOME/.config/mutt/accounts/account.com.fz0x1_posteo!" + +set sendmail = "msmtp -a gmail" + +# Установка отправителя по умолчанию +set from = "foozzione@gmail.com" +set realname = "Tkachenko Ihor" + +# Определите отправителя в зависимости от текущего ящика +send-hook '~f foozzione@gmail.com' 'set sendmail="msmtp -a gmail"' +send-hook '~f fz0x1@posteo.net' 'set sendmail="msmtp -a posteo"' # Ensure TLS is enforced set ssl_starttls = yes @@ -8,6 +29,7 @@ set ssl_force_tls = yes unset record # settings +set beep_new = yes set pager_index_lines = 10 set pager_context = 3 # show 3 lines of context set pager_stop # stop at end of message @@ -46,6 +68,26 @@ set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*" set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" set send_charset = "utf-8:iso-8859-1:us-ascii" # send in utf-8 +# Use GPGME +# Use my key for signing and encrypting +set pgp_default_key = B2A6D86C6EB94D40A9031FFADDCA1A115D6D2284 +# Use GPGME +set crypt_use_gpgme = yes +# Automatically sign all out-going email +set crypt_autosign = yes +# Sign replies to signed emails +set crypt_replysign = yes +# Encrypt replies to encrypted emails +set crypt_replyencrypt = yes +# Encrypt and sign replies to encrypted and signed email +set crypt_replysignencrypted = yes +# Attempt to verify signatures automatically +set crypt_verify_sig = yes +# Attempt to encrypt automatically +set crypt_opportunistic_encrypt = no +# So you can view encrypted emails automatically +auto_view application/pgp-encrypted + #sidebar set sidebar_visible # comment to disable sidebar by default set sidebar_short_path @@ -57,7 +99,7 @@ bind index,pager \CN sidebar-next bind index,pager \CE sidebar-open bind index,pager B sidebar-toggle-visible -set editor = "vim" +set editor = "nvim" # bindings macro index A \ diff --git a/global/.config/mutt/posteo_isync.gpg b/global/.config/mutt/posteo_isync.gpg new file mode 100644 index 0000000..ecd316b Binary files /dev/null and b/global/.config/mutt/posteo_isync.gpg differ diff --git a/global/.config/mutt/settings b/global/.config/mutt/settings index 917f1d8..9e22727 100644 Binary files a/global/.config/mutt/settings and b/global/.config/mutt/settings differ diff --git a/global/.config/mutt/settings.gpg b/global/.config/mutt/settings.gpg new file mode 100644 index 0000000..9fb0fa0 Binary files /dev/null and b/global/.config/mutt/settings.gpg differ diff --git a/global/.config/nvim/lazy-lock.json b/global/.config/nvim/lazy-lock.json index 25a57b1..0f62e8e 100644 --- a/global/.config/nvim/lazy-lock.json +++ b/global/.config/nvim/lazy-lock.json @@ -6,45 +6,46 @@ "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, + "conform.nvim": { "branch": "master", "commit": "1a99fdc1d3aa9ccdf3021e67982a679a8c5c740c" }, "everforest": { "branch": "master", "commit": "93b89630861a4c8a1be07bc54f6d53487acb2e57" }, "friendly-snippets": { "branch": "main", "commit": "00ebcaa159e817150bd83bfe2d51fa3b3377d5c4" }, "gruvbox.nvim": { "branch": "main", "commit": "7a1b23e4edf73a39642e77508ee6b9cbb8c60f9e" }, "hardtime.nvim": { "branch": "main", "commit": "6513bf42cd9261669d1ee41ff8b4065dfdc53a09" }, "indent-blankline.nvim": { "branch": "master", "commit": "18603eb949eba08300799f64027af11ef922283f" }, - "lazy.nvim": { "branch": "main", "commit": "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" }, + "lazy.nvim": { "branch": "main", "commit": "460e1cd8f24e364d54543a4b0e83f6f4ec1f65fb" }, "leap.nvim": { "branch": "main", "commit": "c6bfb191f1161fbabace1f36f578a20ac6c7642c" }, "lsp-zero.nvim": { "branch": "v3.x", "commit": "56db3d5ce5476b183783160e6045f7337ba12b83" }, "lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "482350b050bd413931c2cdd4857443c3da7d57cb" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "mkdnflow.nvim": { "branch": "main", "commit": "d459bd7ce68910272038ed037c028180161fd14d" }, "neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" }, - "neoscroll.nvim": { "branch": "master", "commit": "6dfce64589e8e685d21f2dbd2df15a2473fa1d41" }, - "nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" }, - "nvim-autopairs": { "branch": "master", "commit": "fd2badc24e675f947162a16c124d395bde80dbd6" }, + "neoscroll.nvim": { "branch": "master", "commit": "4e0428a41c6ec191df543fc95349f6e1c598e53f" }, + "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" }, + "nvim-autopairs": { "branch": "master", "commit": "f158dcb865c36f72c92358f87787dab2c272eaf3" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, - "nvim-lint": { "branch": "master", "commit": "a7ce9c78a7c710c28bee56dfab10a5c0c80b7fb5" }, - "nvim-lspconfig": { "branch": "master", "commit": "bdbc65aadc708ce528efb22bca5f82a7cca6b54d" }, + "nvim-lint": { "branch": "master", "commit": "99cab0b885aaa2f59736c047d23e9a7835d4f9a9" }, + "nvim-lspconfig": { "branch": "master", "commit": "eb36e0185ad4b92b0999fb698428f2966334d2c1" }, "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" }, - "nvim-tree.lua": { "branch": "master", "commit": "ea55ef12036897fdc4476b115a395d2a34965c82" }, - "nvim-treesitter": { "branch": "master", "commit": "ccbaee59547425ef8b766433a6020ac191f3151f" }, - "nvim-treesitter-context": { "branch": "master", "commit": "e6cc783b74606d97ca9eff6494e3f5c2ca603a50" }, + "nvim-tree.lua": { "branch": "master", "commit": "45a93d99794fff3064141d5b3a50db98ce352697" }, + "nvim-treesitter": { "branch": "master", "commit": "3c6af36794b26e1bcac3f126b43e0f646154725d" }, + "nvim-treesitter-context": { "branch": "master", "commit": "7f7eeaa99e5a9beab518f502292871ae5f20de6f" }, "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "375c2d86cee6674afd75b4f727ce3a80065552f7" }, - "nvim-web-devicons": { "branch": "master", "commit": "9793801f974bba70e4ac5d7eae6c4f5659993d8e" }, + "nvim-web-devicons": { "branch": "master", "commit": "9154484705968658e9aab2b894d1b2a64bf9f83d" }, "peek.nvim": { "branch": "master", "commit": "5820d937d5414baea5f586dc2a3d912a74636e5b" }, - "plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" }, - "render-markdown.nvim": { "branch": "main", "commit": "2f9d4f0be8784ed4fef5960eb7b80bf60c5fdf56" }, + "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, + "render-markdown.nvim": { "branch": "main", "commit": "5ff191f0c7457ede2fd30ecf76ab16c65118b4ee" }, "tabular": { "branch": "master", "commit": "12437cd1b53488e24936ec4b091c9324cafee311" }, "tagbar": { "branch": "master", "commit": "d55d454bd3d5b027ebf0e8c75b8f88e4eddad8d8" }, - "telescope.nvim": { "branch": "master", "commit": "5972437de807c3bc101565175da66a1aa4f8707a" }, - "todo-comments.nvim": { "branch": "main", "commit": "319c01b99b7a8c9ac2066bf0efd4d6ec68fef444" }, + "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, + "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" }, "toggleterm.nvim": { "branch": "main", "commit": "137d06fb103952a0fb567882bb8527e2f92d327d" }, "trouble.nvim": { "branch": "main", "commit": "6efc446226679fda0547c0fd6a7892fd5f5b15d8" }, "twilight.nvim": { "branch": "main", "commit": "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" }, "vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" }, "vim-markdown": { "branch": "master", "commit": "a657e697376909c41475a686eeef7fc7a4972d94" }, - "vim-tmux-navigator": { "branch": "master", "commit": "5b3c701686fb4e6629c100ed32e827edf8dad01e" }, + "vim-tmux-navigator": { "branch": "master", "commit": "a9b52e7d36114d40350099f254b5f299a35df978" }, "which-key.nvim": { "branch": "main", "commit": "bfec3d6bc0a9b0b2cb11644642f78c2c3915eef0" }, "wrapping.nvim": { "branch": "master", "commit": "a5210c29be19ed736eb3333677e08a57efebce78" }, "zen-mode.nvim": { "branch": "main", "commit": "29b292bdc58b76a6c8f294c961a8bf92c5a6ebd6" } diff --git a/global/.config/nvim/lua/plugins/lsp.lua b/global/.config/nvim/lua/plugins/lsp.lua index e435d2f..c42bbb5 100644 --- a/global/.config/nvim/lua/plugins/lsp.lua +++ b/global/.config/nvim/lua/plugins/lsp.lua @@ -83,7 +83,7 @@ local config = function() require("mason-lspconfig").setup({ ensure_installed = { "bashls", - "tsserver", + "ts_ls", "pyright", "lua_ls", "jsonls", diff --git a/global/.config/nvim/lua/plugins/telescope.lua b/global/.config/nvim/lua/plugins/telescope.lua index e98ec09..e60e3e5 100644 --- a/global/.config/nvim/lua/plugins/telescope.lua +++ b/global/.config/nvim/lua/plugins/telescope.lua @@ -1,8 +1,8 @@ local mapvimkey = require("utils.keymapper").mapvimkey -local copy_filename_to_clipboard = require("utils.telescope_addons").copy_filename_to_clipboard local config = function() local telescope = require("telescope") + local copy_filename_to_clipboard = require("utils.telescope_addons").copy_filename_to_clipboard telescope.setup({ defaults = { mappings = { @@ -37,6 +37,7 @@ end return { "nvim-telescope/telescope.nvim", lazy = false, + tag = '0.1.8', dependencies = { "nvim-lua/plenary.nvim" }, config = config, keys = { diff --git a/global/.mbsyncrc b/global/.mbsyncrc new file mode 100644 index 0000000..c45bed2 --- /dev/null +++ b/global/.mbsyncrc @@ -0,0 +1,59 @@ +IMAPAccount gmail +Host imap.gmail.com +Port 993 +User foozzione@gmail.com +PassCmd "gpg -dq --for-your-eyes-only --no-tty ~/.config/mutt/gmail_isync.gpg" +TLSType IMAPS +CertificateFile /opt/homebrew/Cellar/ca-certificates/2024-07-02/share/ca-certificates/cacert.pem +AuthMechs LOGIN + +IMAPStore gmail-remote +Account gmail + +MaildirStore gmail-local +Subfolders Verbatim +Path ~/.local/share/email/foozzione_gmail/ +INBOX ~/.local/share/email/foozzione_gmail/INBOX +Flatten . + +Channel gmail +Far :gmail-remote: +Near :gmail-local: +Patterns * +# Automatically create missing mailboxes, both locally and on the server +Create Both +# Sync the movement of messages between folders and deletions, add after making sure the sync works +Expunge Both +# Save the synchronization state files in the relevant directory +SyncState * +MaxMessages 0 + + +IMAPAccount posteo-remote +Host posteo.de +Port 993 +User fz0x1@posteo.net +PassCmd "gpg -dq --for-your-eyes-only --no-tty ~/.config/mutt/posteo_isync.gpg" +TLSType IMAPS +CertificateFile /opt/homebrew/Cellar/ca-certificates/2024-07-02/share/ca-certificates/cacert.pem + +IMAPStore posteo-remote +Account posteo-remote + +MaildirStore posteo-local +Subfolders Verbatim +Path ~/.local/share/email/fz0x1_posteo/ +INBOX ~/.local/share/email/fz0x1_posteo/INBOX +Flatten . + +Channel posteo +Far :posteo-remote: +Near :posteo-local: +Patterns * +# Automatically create missing mailboxes, both locally and on the server +Create Both +# Sync the movement of messages between folders and deletions, add after making sure the sync works +Expunge Both +# Save the synchronization state files in the relevant directory +SyncState * +MaxMessages 0 diff --git a/global/.msmtprc b/global/.msmtprc new file mode 100644 index 0000000..a3ab1aa --- /dev/null +++ b/global/.msmtprc @@ -0,0 +1,28 @@ +# Set default values for all following accounts. +defaults +auth on +tls on +tls_starttls on +tls_trust_file /opt/homebrew/Cellar/ca-certificates/2024-07-02/share/ca-certificates/cacert.pem +logfile ~/.config/msmtp/msmtp.log + +# Gmail +account gmail +host smtp.gmail.com +port 465 +tls_starttls off +from foozzione@gmail.com +user foozzione@gmail.com +passwordeval "gpg -dq $HOME/.config/mutt/gmail_isync.gpg" + +# Posteo +account posteo +host posteo.de +port 465 +tls_starttls off +from fz0x1@posteo.net +user fz0x1@posteo.net +passwordeval "gpg -dq $HOME/.config/mutt/posteo_isync.gpg" + +# Set a default account +account default: posteo diff --git a/global/.zshrc b/global/.zshrc index 4614776..fbd87cc 100644 --- a/global/.zshrc +++ b/global/.zshrc @@ -75,7 +75,7 @@ alias la="eza -lagh --git --header" alias lt="eza -T --git-ignore" #alias nano='micro' ## files/dirs -alias zshe='vim ~/.zshrc' +alias zshe='nvim ~/.zshrc' alias zshs='. ~/.zshrc' ## neomutt alias nm='neomutt' diff --git a/macos/.config/mutt/paths b/macos/.config/mutt/paths index fa152d7..ce40caf 100644 --- a/macos/.config/mutt/paths +++ b/macos/.config/mutt/paths @@ -1,10 +1,5 @@ -# Where to put the stuff -set header_cache = "$HOME/Library/Caches/mutt/headers" -set message_cachedir = "$HOME/Library/Caches/mutt/bodies" -set certificate_file = "$HOME/Library/Caches/mutt/certificates" - # link to mailcap file set mailcap_path = "$HOME/.config/mutt/mailcap" # save attachments to a folder -macro attach s ' $HOME/Documents/attachments/' 'save attachment' \ No newline at end of file +macro attach s ' $HOME/Documents/attachments/' 'save attachment'