1
Fork 0

Lots of latex stuff and idk what else (timezone change!)

This commit is contained in:
Matei Adriel 2022-09-09 00:16:11 +02:00
commit f17b922131
31 changed files with 398 additions and 67 deletions

View file

@ -0,0 +1,17 @@
local M = {}
function M.setup()
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local cmp = require('cmp')
cmp.event:on(
'confirm_done',
cmp_autopairs.on_confirm_done()
)
require('nvim-autopairs').setup({
enable_abbr = false
})
end
return M

View file

@ -24,10 +24,15 @@ function M.setup()
formatting = {
fields = { "kind", "abbr", "menu" },
format = function(entry, vim_item)
local kind = lspkind.cmp_format({ mode = "symbol_text", maxwidth = 50 })(entry, vim_item)
local kind = lspkind.cmp_format({ mode = "symbol", maxwidth = 50
, symbol_map = {
Text = "."
}
})(entry, vim_item)
local strings = vim.split(kind.kind, "%s", { trimempty = true })
kind.kind = " " .. strings[1] .. " "
kind.menu = " (" .. strings[2] .. ")"
kind.menu = ""
return kind
end,
@ -63,7 +68,8 @@ function M.setup()
},
sources = cmp.config.sources({
{ name = 'nvim_lsp' }, -- lsp completion
{ name = 'luasnip' } -- snippets
{ name = 'luasnip' }, -- snippets
{ name = 'omni' } -- omnifunc
}, { { name = 'buffer' } })
}

View file

@ -2,7 +2,6 @@ local vscode = require("my.helpers.vscode")
local M = {}
function M.setup()
require('nvim-autopairs').setup()
require "gitlinker".setup()
require('nvim_comment').setup()
require('fidget').setup()
@ -22,6 +21,7 @@ function M.setup()
require("my.plugins.vimux").setup()
end)
require("my.plugins.autopairs").setup()
require("my.plugins.paperplanes").setup()
require("my.plugins.neogit").setup()
require("my.plugins.telescope").setup()

View file

@ -2,12 +2,12 @@ local lspconfig = require("my.plugins.lspconfig")
local M = {}
function M.setup()
require('lean').setup {
abbreviations = {builtin = true, cmp = true},
lsp = {on_attach = lspconfig.on_attach},
lsp3 = {on_attach = lspconfig.on_attach},
mappings = true
}
require('lean').setup {
abbreviations = { builtin = true, cmp = true },
lsp = { on_attach = lspconfig.on_attach },
lsp3 = { on_attach = lspconfig.on_attach },
mappings = true
}
end
return M

View file

@ -102,6 +102,19 @@ local servers = {
},
rnix = {},
cssls = {},
-- texlab = {
-- build = {
-- executable = "tectonic",
-- args = {
-- "-X",
-- "compile",
-- "%f",
-- "--synctex",
-- "--keep-logs",
-- "--keep-intermediates"
-- }
-- }
-- },
kotlin_language_server = {}
-- agda = {}, Haven't gotten this one to work yet
}

View file

@ -10,9 +10,9 @@ function M.setup()
sync_install = false,
indent = { enable = true },
highlight = {
enable = true,
enable = false,
disable = { "kotlin" },
disable = { "kotlin", "tex" },
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).

View file

@ -3,10 +3,15 @@ local global = require("my.helpers").global
local M = {}
function M.setup()
-- Viewer method
global("vimtex_view_method", "zathura")
global("Tex_DefaultTargetFormat", "pdf")
global("vimtex_compiler_latexmk", {options = {"-pdf", "-shell-escape", "-verbose", "-file-line-error", "-synctex=1", "-interaction=nonstopmode"}})
-- Viewer method
vim.g.vimtex_view_method = "zathura"
vim.g.Tex_DefaultTargetFormat = "pdf"
vim.g.vimtex_fold_enabled = 1
vim.g.vimtex_compiler_latexmk = {
options = {
"-pdf", "-shell-escape", "-verbose", "-file-line-error", "-synctex=1", "-interaction=nonstopmode"
}
}
end
return M

View file

@ -3,9 +3,9 @@ local arpeggio = require("my.plugins.arpeggio")
local M = {}
function M.setup()
arpeggio.chordSilent("n", "vp", ":VimuxPromptCommand<CR>")
arpeggio.chordSilent("n", "vc", ":VimuxRunCommand \"clear\"<CR>")
arpeggio.chordSilent("n", "vl", ":VimuxRunLastCommand<CR>")
arpeggio.chordSilent("n", "vp", ":VimuxPromptCommand<CR>")
arpeggio.chordSilent("n", "vc", ":VimuxRunCommand \"clear\"<CR>")
arpeggio.chordSilent("n", "vl", ":VimuxRunLastCommand<CR>")
end
return M