update nvim configuration
This commit is contained in:
parent
de86f17b13
commit
8a860b25cf
2 changed files with 20 additions and 1 deletions
|
@ -97,6 +97,10 @@ require("lazy").setup({
|
|||
mapping = {
|
||||
['<Tab>'] = cmp_action.luasnip_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 = {
|
||||
completion = {
|
||||
|
@ -198,7 +202,11 @@ require("lazy").setup({
|
|||
api.toggle.blockwise(vim.fn.visualmode())
|
||||
end)
|
||||
end,
|
||||
}
|
||||
},
|
||||
{
|
||||
'jamessan/vim-gnupg',
|
||||
-- ft = { ".gpg", ".pgp", ".asc" },
|
||||
},
|
||||
})
|
||||
-- }}}
|
||||
-- {{{ Keymap
|
||||
|
@ -262,3 +270,13 @@ if os.getenv("NVIM_IDE_MODE") == "1" then
|
|||
vim.cmd [[IDE]]
|
||||
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
|
||||
})
|
||||
|
|
|
@ -16,5 +16,6 @@
|
|||
"telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" },
|
||||
"tokyodark.nvim": { "branch": "master", "commit": "4bfb42924274abc5de9f5f4779075b77c6112c85" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "572c8510123cbde02e8a1dafcd376c98e1e13f43" },
|
||||
"vim-gnupg": { "branch": "main", "commit": "f9b608f29003dfde6450931dc0f495a912973a88" },
|
||||
"vim-tmux-navigator": { "branch": "master", "commit": "addb64a772cb4a3ae1f1363583012b2cada2cd66" }
|
||||
}
|
Loading…
Reference in a new issue