nvim: Remove wrapping notification, add toggle map

This commit is contained in:
Marty Oehme 2023-03-19 14:47:26 +01:00
parent b8eb02ef6c
commit 0d5eeadef0
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 13 additions and 1 deletions

View file

@ -240,3 +240,7 @@ map('n', '<leader>ww', [[:lua require 'zettelkasten'.index_open()<cr> ]],
-- PLUGIN: toggleterm.nvim
-- create a lazygit window, set up in toggleterm settings
map('n', '<leader>G', ':Lazygit<cr>')
-- PLUGIN: wrapping.nvim
map('n', '<localleader>sw', [[:lua require('wrapping').toggle_wrap_mode()<cr> ]],
{ silent = true, desc = 'toggle wrap mode' })

View file

@ -70,7 +70,15 @@ return {
{ 'vim-pandoc/vim-criticmarkup', ft = writing_ft }, {
'mickael-menu/zk-nvim',
config = function() require('zk').setup({ picker = "telescope" }) end
}, { 'andrewferrier/wrapping.nvim', config = true }, {
}, {
'andrewferrier/wrapping.nvim',
config = function()
require('wrapping').setup({
create_keymappings = false,
notify_on_switch = false
})
end
}, {
'quarto-dev/quarto-nvim',
dependencies = {
'jmbuhr/otter.nvim', 'neovim/nvim-lspconfig',