summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-05-01 10:29:09 +0200
committerNanderty <psopka@sopka.ch>2023-05-01 10:29:09 +0200
commit5b86f069582eaff5d360e62e28dcaba3aee9de47 (patch)
tree6722f448c2f272ee6fd195eaf53adb58ff4b889a /lua
parentd37f266e7719a67faa99b3ec62e9a51f0033cfc2 (diff)
downloadneovim-config-5b86f069582eaff5d360e62e28dcaba3aee9de47.tar.gz
neovim-config-5b86f069582eaff5d360e62e28dcaba3aee9de47.tar.bz2
neovim-config-5b86f069582eaff5d360e62e28dcaba3aee9de47.zip
Greek
Diffstat (limited to 'lua')
-rw-r--r--lua/Snippets/tex/greek.lua306
-rw-r--r--lua/Snippets/tex/math.lua61
-rw-r--r--lua/Snippets/tex/symbols.lua81
-rw-r--r--lua/plugins/colorscheme.lua24
-rw-r--r--lua/plugins/interface.lua3
-rw-r--r--lua/plugins/telescope.lua2
6 files changed, 367 insertions, 110 deletions
diff --git a/lua/Snippets/tex/greek.lua b/lua/Snippets/tex/greek.lua
new file mode 100644
index 0000000..7431adc
--- /dev/null
+++ b/lua/Snippets/tex/greek.lua
@@ -0,0 +1,306 @@
+local tex = require('Snippets.luasniphelperslatex')
+local helper = require('Snippets.luasniphelpers')
+
+return {
+
+ s({ trig = 'alp', snippetType = 'autosnippet' },
+ {
+ t('\\alpha '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'bet', snippetType = 'autosnippet' },
+ {
+ t('\\beta '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'gam', snippetType = 'autosnippet' },
+ {
+ t('\\gamma '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'Gam', snippetType = 'autosnippet' },
+ {
+ t('\\Gamma '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'del', snippetType = 'autosnippet' },
+ {
+ t('\\delta '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'Del', snippetType = 'autosnippet' },
+ {
+ t('\\Delta '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'eps', snippetType = 'autosnippet' },
+ {
+ t('\\epsilon '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'veps', snippetType = 'autosnippet' },
+ {
+ t('\\varepsilon '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = '0eps', snippetType = 'autosnippet' },
+ {
+ t('\\epsilon_0 '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'zet', snippetType = 'autosnippet' },
+ {
+ t('\\Zeta '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'eta', snippetType = 'autosnippet' },
+ {
+ t('\\eta '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'the', snippetType = 'autosnippet' },
+ {
+ t('\\theta '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'The', snippetType = 'autosnippet' },
+ {
+ t('\\Theta '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'vth', snippetType = 'autosnippet' },
+ {
+ t('\\vartheta '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'iot', snippetType = 'autosnippet' },
+ {
+ t('\\iota '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'vth', snippetType = 'autosnippet' },
+ {
+ t('\\vartheta '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'iot', snippetType = 'autosnippet' },
+ {
+ t('\\iota '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'kap', snippetType = 'autosnippet' },
+ {
+ t('\\kappa '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'lam', snippetType = 'autosnippet' },
+ {
+ t('\\lam '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'Lam', snippetType = 'autosnippet' },
+ {
+ t('\\Lam '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'mu', snippetType = 'autosnippet' },
+ {
+ t('\\mu '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = '0mu', snippetType = 'autosnippet' },
+ {
+ t('\\mu_0 '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'nu', snippetType = 'autosnippet' },
+ {
+ t('\\nu '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'xi', snippetType = 'autosnippet' },
+ {
+ t('\\xi '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'Xi', snippetType = 'autosnippet' },
+ {
+ t('\\Xi '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'pi', snippetType = 'autosnippet' },
+ {
+ t('\\pi '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'Pi', snippetType = 'autosnippet' },
+ {
+ t('\\Pi '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'rho', snippetType = 'autosnippet' },
+ {
+ t('\\rho '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'vrh', snippetType = 'autosnippet' },
+ {
+ t('\\varrho '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'sig', snippetType = 'autosnippet' },
+ {
+ t('\\sigma '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'Sig', snippetType = 'autosnippet' },
+ {
+ t('\\Sigma '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'vsi', snippetType = 'autosnippet' },
+ {
+ t('\\vsigma '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'tau', snippetType = 'autosnippet' },
+ {
+ t('\\tau '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'ups', snippetType = 'autosnippet' },
+ {
+ t('\\upsilon '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'Ups', snippetType = 'autosnippet' },
+ {
+ t('\\Upsilon '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'phi', snippetType = 'autosnippet' },
+ {
+ t('\\phi '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'Phi', snippetType = 'autosnippet' },
+ {
+ t('\\Phi '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'vph', snippetType = 'autosnippet' },
+ {
+ t('\\varphi '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'chi', snippetType = 'autosnippet' },
+ {
+ t('\\chi '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'psi', snippetType = 'autosnippet' },
+ {
+ t('\\psi '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'Psi', snippetType = 'autosnippet' },
+ {
+ t('\\Psi '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'ome', snippetType = 'autosnippet' },
+ {
+ t('\\omega '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+
+ s({ trig = 'Ome', snippetType = 'autosnippet' },
+ {
+ t('\\Omega '),
+ },
+ { condition = tex.in_mathzone }
+ ),
+}
diff --git a/lua/Snippets/tex/math.lua b/lua/Snippets/tex/math.lua
index b6c5068..882231a 100644
--- a/lua/Snippets/tex/math.lua
+++ b/lua/Snippets/tex/math.lua
@@ -2,6 +2,7 @@ local tex = require('Snippets.luasniphelperslatex')
local helper = require('Snippets.luasniphelpers')
return {
+
s({ trig = '$', snippetType = 'autosnippet' },
fmta(
'$<>$',
@@ -10,6 +11,17 @@ return {
}
)
),
+
+ s({ trig = "tex", snippetType = "autosnippet" },
+ fmta(
+ '\\text{<>}',
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
+
s({ trig = '/', snippetType = 'autosnippet' },
fmta(
'\\frac{<>}{<>}',
@@ -20,6 +32,7 @@ return {
),
{ condition = tex.in_mathzone }
),
+
s({ trig = "sum", snippetType = "autosnippet" },
fmta(
'\\sum_{<>}^{<>}',
@@ -30,6 +43,7 @@ return {
),
{ condition = tex.in_mathzone }
),
+
s({ trig = "int", snippetType = "autosnippet" },
fmta(
'\\int_{<>}^{<>}',
@@ -40,6 +54,7 @@ return {
),
{ condition = tex.in_mathzone }
),
+
s({ trig = 'nn', snippetType = 'autosnippet' },
fmta(
'\\num{<>}',
@@ -48,15 +63,16 @@ return {
}
)
),
- s({ trig = "tex", snippetType = "autosnippet" },
+
+ s({ trig = 'mcl', snippetType = 'autosnippet' },
fmta(
- '\\text{<>}',
+ '\\mathcal{<>}',
{
i(1),
}
- ),
- { condition = tex.in_mathzone }
+ )
),
+
s({ trig = "vec", snippetType = "autosnippet" },
fmta(
'\\vec{<>}',
@@ -66,6 +82,7 @@ return {
),
{ condition = tex.in_mathzone }
),
+
s({ trig = "hat", snippetType = "autosnippet" },
fmta(
'\\hat{<>}',
@@ -84,34 +101,38 @@ return {
),
{ condition = tex.in_mathzone }
),
+
s({ trig = 'öö', snippetType = 'autosnippet' },
fmta(
'^{<>}',
- {
- i(1),
- }
- ),
+ {
+ i(1),
+ }
+ ),
{ condition = tex.in_mathzone }
),
+
s({ trig = 'gg', snippetType = 'autosnippet' },
fmta(
'\\sqrt[<>]{<>}',
- {
- i(1),
- i(2),
- }
- ),
+ {
+ i(1),
+ i(2),
+ }
+ ),
{ condition = tex.in_mathzone }
),
+
s({ trig = 'll', snippetType = 'autosnippet' },
fmta(
'_{<>}',
- {
- i(1),
- }
- ),
+ {
+ i(1),
+ }
+ ),
{ condition = tex.in_mathzone }
),
+
s({ trig = "bb", snippetType = "autosnippet" },
fmta(
'\\left(<>\\right)',
@@ -121,10 +142,12 @@ return {
),
{ condition = tex.in_mathzone }
),
+
s({ trig = 'df', snippetType = 'autosnippet' },
- { t('\\diff ') },
+ { t('\\,d') },
{ condition = tex.in_mathzone }
),
+
s({ trig = "sin", snippetType = "autosnippet" },
fmta(
'\\sin{<>}',
@@ -134,6 +157,7 @@ return {
),
{ condition = tex.in_mathzone }
),
+
s({ trig = "cos", snippetType = "autosnippet" },
fmta(
'\\cos{<>}',
@@ -143,6 +167,7 @@ return {
),
{ condition = tex.in_mathzone }
),
+
s({ trig = "tan", snippetType = "autosnippet" },
fmta(
'\\tan{<>}',
diff --git a/lua/Snippets/tex/symbols.lua b/lua/Snippets/tex/symbols.lua
index ccce14e..76fc3c2 100644
--- a/lua/Snippets/tex/symbols.lua
+++ b/lua/Snippets/tex/symbols.lua
@@ -2,123 +2,66 @@ local tex = require('Snippets.luasniphelperslatex')
local helper = require('Snippets.luasniphelpers')
return {
- s({ trig = 'chi', snippetType = 'autosnippet' },
- {
- t('\\chi'),
- },
- { condition = tex.in_mathzone }
- ),
- s({ trig = 'sig', snippetType = 'autosnippet' },
- {
- t('\\sigma'),
- },
- { condition = tex.in_mathzone }
- ),
- s({ trig = 'nu', snippetType = 'autosnippet' },
- {
- t('\\nu'),
- },
- { condition = tex.in_mathzone }
- ),
- s({ trig = 'alp', snippetType = 'autosnippet' },
- {
- t('\\alpha'),
- },
- { condition = tex.in_mathzone }
- ),
- s({ trig = 'del', snippetType = 'autosnippet' },
- {
- t('\\delta '),
- },
- { condition = tex.in_mathzone }
- ),
- s({ trig = 'phi', snippetType = 'autosnippet' },
- {
- t('\\phi '),
- },
- { condition = tex.in_mathzone }
- ),
- s({ trig = 'Phi', snippetType = 'autosnippet' },
- {
- t('\\Phi '),
- },
- { condition = tex.in_mathzone }
- ),
- s({ trig = 'pi', snippetType = 'autosnippet' },
+
+ s({ trig = 'inf', snippetType = 'autosnippet' },
{
- t('\\pi '),
+ t('\\infty '),
},
{ condition = tex.in_mathzone }
),
+
s({ trig = 'nab', snippetType = 'autosnippet' },
{
t('\\nabla '),
},
{ condition = tex.in_mathzone }
),
- s({ trig = 'mu', snippetType = 'autosnippet' },
- {
- t('\\mu '),
- },
- { condition = tex.in_mathzone }
- ),
- s({ trig = 'eps', snippetType = 'autosnippet' },
- {
- t('\\epsilon '),
- },
- { condition = tex.in_mathzone }
- ),
- s({ trig = '0mu', snippetType = 'autosnippet' },
- {
- t('\\mu_0 '),
- },
- { condition = tex.in_mathzone }
- ),
- s({ trig = '0eps', snippetType = 'autosnippet' },
- {
- t('\\epsilon_0 '),
- },
- { condition = tex.in_mathzone }
- ),
+
s({ trig = 'cdo', snippetType = 'autosnippet' },
{
t('\\cdot '),
},
{ condition = tex.in_mathzone }
),
+
s({ trig = 'tim', snippetType = 'autosnippet' },
{
t('\\times '),
},
{ condition = tex.in_mathzone }
),
+
s({ trig = 'app', snippetType = 'autosnippet' },
{
t('\\approx '),
},
{ condition = tex.in_mathzone }
),
+
s({ trig = 'leq', snippetType = 'autosnippet' },
{
t('\\leq '),
},
{ condition = tex.in_mathzone }
),
+
s({ trig = 'geq', snippetType = 'autosnippet' },
{
t('\\geq '),
},
{ condition = tex.in_mathzone }
),
+
s({ trig = 'neq', snippetType = 'autosnippet' },
{
t('\\neq '),
},
{ condition = tex.in_mathzone }
),
+
s({ trig = 'Ria', snippetType = 'autosnippet' },
{
- t('\\Rightarrow'),
+ t('\\Rightarrow '),
},
{ condition = tex.in_mathzone }
),
diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua
index 5e226d6..f2f5906 100644
--- a/lua/plugins/colorscheme.lua
+++ b/lua/plugins/colorscheme.lua
@@ -1,28 +1,14 @@
return {
{
- 'rose-pine/neovim',
- name = 'rose-pine',
+ 'loctvl842/monokai-pro.nvim',
lazy = false,
priority = 1000,
config = function()
- require('rose-pine').setup({
- variant = 'moon',
- highlight_groups = {
- TelescopePromptNormal = { fg = 'base', bg = 'rose' },
- TelescopePromptBorder = { bg = 'rose' },
- TelescopePromptTitle = { fg = 'base' },
- TelescopePromptPrefix = { fg = 'base' },
- TelescopePromptCounter = { fg = 'base' },
- TelescopePreviewNormal = { bg = 'overlay' },
- TelescopePreviewBorder = { bg = 'overlay' },
- TelescopeResultsNormal = { bg = 'overlay' },
- TelescopeResultsBorder = { bg = 'overlay' },
- },
- groups = {
- background = 'none',
- },
+ require('monokai-pro').setup({
+ filter = 'octagon',
+ background_clear = {},
})
- vim.cmd('colorscheme rose-pine')
+ vim.cmd('colorscheme monokai-pro')
end,
},
}
diff --git a/lua/plugins/interface.lua b/lua/plugins/interface.lua
index ede5cf8..795961a 100644
--- a/lua/plugins/interface.lua
+++ b/lua/plugins/interface.lua
@@ -20,9 +20,6 @@ return {
'nvim-lualine/lualine.nvim',
event = 'VeryLazy',
opts = {
- options = {
- theme = 'rose-pine'
- },
sections = {
lualine_x = {},
lualine_y = {},
diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua
index 3f1a9b8..0efadfd 100644
--- a/lua/plugins/telescope.lua
+++ b/lua/plugins/telescope.lua
@@ -34,7 +34,7 @@ return {
height = 0.80,
preview_cutoff = 120,
},
- borderchars = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' },
+ borderchars = { "█", " ", "▀", "█", "█", " ", " ", "▀" },
},
},
},