nvim: Add latex notation concealing with nabla
Notations will be concealed automatically on entering a textual buffer and `$...$` style notations are contained. Concealing can be turned off with <localleader>sV, which will toggle concealing on or off for all notations in the file. Additionally, the notation under curser can be viewed in a popup with <localleader>sv.
This commit is contained in:
parent
2b64b4b750
commit
d2e101b822
3 changed files with 12 additions and 1 deletions
|
@ -40,6 +40,7 @@
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "2b811031febe5f743e07305738181ff367e1e452" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "2b811031febe5f743e07305738181ff367e1e452" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "9f6fd51ce6a3381fbed5fe33169ff20b5bd8f00b" },
|
"mason.nvim": { "branch": "main", "commit": "9f6fd51ce6a3381fbed5fe33169ff20b5bd8f00b" },
|
||||||
"mini.nvim": { "branch": "main", "commit": "427751024313e2270ca723eb16af7b218c83a7fc" },
|
"mini.nvim": { "branch": "main", "commit": "427751024313e2270ca723eb16af7b218c83a7fc" },
|
||||||
|
"nabla.nvim": { "branch": "master", "commit": "4870fce48aa4ce3565fafb0e778378d728ad02b0" },
|
||||||
"neural": { "branch": "main", "commit": "155618730b87a67655bdde373ee27bfce8b07ac9" },
|
"neural": { "branch": "main", "commit": "155618730b87a67655bdde373ee27bfce8b07ac9" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "0dc148c6ec06577fcf06cbab3b7dac96d48ba6be" },
|
"nui.nvim": { "branch": "main", "commit": "0dc148c6ec06577fcf06cbab3b7dac96d48ba6be" },
|
||||||
"nvim-base16": { "branch": "master", "commit": "db9ac827d833236b2b7bbacf6ec3a92f96b88890" },
|
"nvim-base16": { "branch": "master", "commit": "db9ac827d833236b2b7bbacf6ec3a92f96b88890" },
|
||||||
|
|
|
@ -267,9 +267,13 @@ map('v', '<localleader>nf', ":ZkMatch<cr>",
|
||||||
-- create a lazygit window, set up in toggleterm settings
|
-- create a lazygit window, set up in toggleterm settings
|
||||||
map('n', '<leader>G', ':Lazygit<cr>')
|
map('n', '<leader>G', ':Lazygit<cr>')
|
||||||
|
|
||||||
|
prefix({ ['<localleader>s'] = { name = '+set' } })
|
||||||
-- PLUGIN: wrapping.nvim
|
-- PLUGIN: wrapping.nvim
|
||||||
map('n', '<localleader>sw', [[:lua require('wrapping').toggle_wrap_mode()<cr> ]],
|
map('n', '<localleader>sw', [[:lua require('wrapping').toggle_wrap_mode()<cr> ]],
|
||||||
{ silent = true, desc = 'toggle wrap mode' })
|
{ silent = true, desc = 'toggle wrap mode' })
|
||||||
|
|
||||||
-- PLUGIN: easyread.nvim
|
-- PLUGIN: easyread.nvim
|
||||||
map('n', '<localleader>ss', ':EasyreadToggle<cr>', { silent = true, desc = 'toggle speedreading' })
|
map('n', '<localleader>ss', ':EasyreadToggle<cr>', { silent = true, desc = 'toggle speedreading' })
|
||||||
|
-- PLUGIN: nabla.nvim
|
||||||
|
map('n', '<localleader>sv', '<cmd>lua require("nabla").popup()<cr>', { silent = true, desc = 'latex formula popup' })
|
||||||
|
map('n', '<localleader>sV', '<cmd>lua require("nabla").toggle_virt({autogen = true, silent = true})<cr>',
|
||||||
|
{ silent = true, desc = 'toggle formula notation' })
|
||||||
|
|
|
@ -78,6 +78,12 @@ return {
|
||||||
config = function() require('plug._lualine') end
|
config = function() require('plug._lualine') end
|
||||||
}, -- writing
|
}, -- writing
|
||||||
{ 'vim-pandoc/vim-criticmarkup', ft = writing_ft }, {
|
{ 'vim-pandoc/vim-criticmarkup', ft = writing_ft }, {
|
||||||
|
'jbyuki/nabla.nvim',
|
||||||
|
ft = writing_ft,
|
||||||
|
config = function()
|
||||||
|
require('nabla').enable_virt({ autogen = true, silent = true })
|
||||||
|
end
|
||||||
|
}, {
|
||||||
'mickael-menu/zk-nvim',
|
'mickael-menu/zk-nvim',
|
||||||
config = function() require('zk').setup({ picker = "telescope" }) end
|
config = function() require('zk').setup({ picker = "telescope" }) end
|
||||||
}, {
|
}, {
|
||||||
|
|
Loading…
Reference in a new issue