diff options
| author | ottjk <joshott16@gmail.com> | 2024-01-20 01:29:51 -0500 |
|---|---|---|
| committer | ottjk <joshott16@gmail.com> | 2024-01-20 01:29:51 -0500 |
| commit | ea9a749bd6238334ff9e92a0a31fdeaf5223619b (patch) | |
| tree | 6036539f3e49427483fb2dc388da377d5e5c7397 /nvim | |
| parent | 9b78e39e9cca329acc160399e46bb8d1c9b33955 (diff) | |
| download | dotfiles-ea9a749bd6238334ff9e92a0a31fdeaf5223619b.tar.gz dotfiles-ea9a749bd6238334ff9e92a0a31fdeaf5223619b.zip | |
many such updates
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/after/ftplugin/markdown.lua | 5 | ||||
| -rw-r--r-- | nvim/lua/keymaps.lua | 6 | ||||
| -rw-r--r-- | nvim/lua/plugins.lua | 4 | ||||
| -rw-r--r-- | nvim/snips/tex/expressions.lua | 10 | ||||
| -rw-r--r-- | nvim/snips/tex/symbols.lua | 8 |
5 files changed, 21 insertions, 12 deletions
diff --git a/nvim/after/ftplugin/markdown.lua b/nvim/after/ftplugin/markdown.lua deleted file mode 100644 index 86af50e..0000000 --- a/nvim/after/ftplugin/markdown.lua +++ /dev/null @@ -1,5 +0,0 @@ -local map = vim.keymap.set -local opts = { noremap = false, silent = true} - -map('', 'o', '<Plug>Markdown_NewLineBelow<Esc>', opts) -map('', 'O', '<Plug>Markdown_NewLineAbove<Esc>', opts) diff --git a/nvim/lua/keymaps.lua b/nvim/lua/keymaps.lua index f491651..18b379d 100644 --- a/nvim/lua/keymaps.lua +++ b/nvim/lua/keymaps.lua @@ -74,6 +74,9 @@ map('n', '<leader>vc', ':VimtexClean!<CR>') map('i', '<C-f>', [[<Esc>: silent exec '.!inkscape-figures create "'.getline('.').'" "'.b:vimtex.root.'/figures/"'<CR><CR>:w<CR>]], opts) map('n', '<C-f>', [[: silent exec '!inkscape-figures edit "'.b:vimtex.root.'/figures/" > /dev/null 2>&1 &'<CR><CR>:redraw!<CR>]], opts) +map('i', '<C-x>', [[<Esc>: silent exec '.!xoppdog shake "'.getline('.').'" "'.b:vimtex.root.'/figures/"'<CR><CR>:w<CR>]], opts) +map('n', '<C-x>', [[: silent exec '!xoppdog fetch "'.b:vimtex.root.'/figures/" > /dev/null 2>&1 &'<CR><CR>:redraw!<CR>]], opts) + vim.cmd([[ " press <Tab> to expand or jump in a snippet. These can also be mapped separately " via <Plug>luasnip-expand-snippet and <Plug>luasnip-jump-next. @@ -84,5 +87,4 @@ map('i', '<S-Tab>', [[<cmd>lua require'luasnip'.jump(-1)<Cr>]], opts) map('s', '<Tab>', [[<cmd>lua require('luasnip').jump(1)<Cr>]], opts) map('s', '<Tab>', [[<cmd>lua require('luasnip').jump(-1)<Cr>]], opts) -map('', '<Plug>', '<Plug>Markdown_NewLineAbove', opts) -map('', '<Plug>', '<Plug>Markdown_NewLineBelow', opts) +map('n', '<leader>xx', function() require('trouble').toggle() end) diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 2fb9566..49532d3 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -71,4 +71,8 @@ require("lazy").setup({ require("hop").setup({ keys = "tnseridhaofuwyplcqxz" }) end, }, + { + 'folke/trouble.nvim', + dependencies = { "nvim-tree/nvim-web-devicons" }, + }, }) diff --git a/nvim/snips/tex/expressions.lua b/nvim/snips/tex/expressions.lua index 2bb6d29..88659eb 100644 --- a/nvim/snips/tex/expressions.lua +++ b/nvim/snips/tex/expressions.lua @@ -26,8 +26,8 @@ local parens = function(_, parent) if open == "'a" then open = "\\langle" end local node = n.sn(1, - n.fmta("\\left<> <> \\right<>", - { n.t(open), n.i(1), n.t(closer(open)) }) + n.fmta("\\left<> <> \\right<><>", + { n.t(open), n.i(1), n.t(closer(open)), n.i(0) }) ) return node end @@ -97,7 +97,7 @@ return { { condition = h.in_mathzone } ), n.s({trig="df", wordTrig=false, snippetType="autosnippet"}, - { n.t("\\diff") }, + { n.t("\\diff ") }, { condition = h.in_mathzone } ), n.s({trig="pf", wordTrig=false, snippetType="autosnippet"}, @@ -133,8 +133,8 @@ return { { condition = h.in_enumerate * h.line_begin } ), n.s({trig = "ceil", snippetType="autosnippet"}, - n.fmta("\\left\\lceil <> \\right\\rceil", - { n.i(1) }), + n.fmta("\\left\\lceil <> \\right\\rceil<>", + { n.i(1), n.i(0) }), { condition = h.in_mathzone } ), n.s({trig = "floor", snippetType="autosnippet"}, diff --git a/nvim/snips/tex/symbols.lua b/nvim/snips/tex/symbols.lua index d42c831..59b505b 100644 --- a/nvim/snips/tex/symbols.lua +++ b/nvim/snips/tex/symbols.lua @@ -246,6 +246,10 @@ return { { n.t("\\rho") }, { condition = h.in_mathzone } ), + n.s({trig="'ch", snippetType="autosnippet"}, + { n.t("\\chi") }, + { condition = h.in_mathzone } + ), n.s({trig="del", snippetType="autosnippet"}, { n.t("\\Del") }, { condition = h.in_mathzone } @@ -330,6 +334,10 @@ return { { n.t("^{\\circ}") }, { condition = h.in_mathzone } ), + n.s({trig="'da", snippetType="autosnippet", wordTrig=false}, + { n.t("^{\\dag}") }, + { condition = h.in_mathzone } + ), n.s({trig="oxx", snippetType="autosnippet"}, { n.t("\\otimes") }, { condition = h.in_mathzone } |