update nvim configuration

This commit is contained in:
bain 2023-09-18 15:25:25 +02:00
parent de86f17b13
commit 8a860b25cf
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B
2 changed files with 20 additions and 1 deletions

View file

@ -97,6 +97,10 @@ require("lazy").setup({
mapping = { mapping = {
['<Tab>'] = cmp_action.luasnip_supertab(), ['<Tab>'] = cmp_action.luasnip_supertab(),
['<S-Tab>'] = cmp_action.luasnip_shift_supertab(), ['<S-Tab>'] = cmp_action.luasnip_shift_supertab(),
-- Requires the terminal to send proper keycodes (put this in .Xresources):
-- URxvt.keysym.S-Return: \033[13;2u
-- URxvt.keysym.C-Return: \033[13;5u
['<S-Enter>'] = cmp.mapping.confirm({ select = true }),
}, },
window = { window = {
completion = { completion = {
@ -198,7 +202,11 @@ require("lazy").setup({
api.toggle.blockwise(vim.fn.visualmode()) api.toggle.blockwise(vim.fn.visualmode())
end) end)
end, end,
} },
{
'jamessan/vim-gnupg',
-- ft = { ".gpg", ".pgp", ".asc" },
},
}) })
-- }}} -- }}}
-- {{{ Keymap -- {{{ Keymap
@ -262,3 +270,13 @@ if os.getenv("NVIM_IDE_MODE") == "1" then
vim.cmd [[IDE]] vim.cmd [[IDE]]
end end
-- }}} -- }}}
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.eml", "*.mail" },
callback = function(_)
vim.cmd("setl tw=80")
vim.cmd("setl fo=awq")
vim.cmd("setl comments+=nb:>")
vim.cmd([[match ErrorMsg '\s\+$']])
end
})

View file

@ -16,5 +16,6 @@
"telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" }, "telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" },
"tokyodark.nvim": { "branch": "master", "commit": "4bfb42924274abc5de9f5f4779075b77c6112c85" }, "tokyodark.nvim": { "branch": "master", "commit": "4bfb42924274abc5de9f5f4779075b77c6112c85" },
"vim-fugitive": { "branch": "master", "commit": "572c8510123cbde02e8a1dafcd376c98e1e13f43" }, "vim-fugitive": { "branch": "master", "commit": "572c8510123cbde02e8a1dafcd376c98e1e13f43" },
"vim-gnupg": { "branch": "main", "commit": "f9b608f29003dfde6450931dc0f495a912973a88" },
"vim-tmux-navigator": { "branch": "master", "commit": "addb64a772cb4a3ae1f1363583012b2cada2cd66" } "vim-tmux-navigator": { "branch": "master", "commit": "addb64a772cb4a3ae1f1363583012b2cada2cd66" }
} }