This commit is contained in:
h 2024-11-14 03:41:41 -05:00
parent ceb580acbe
commit 7fe2f7b438
5 changed files with 33 additions and 31 deletions

View File

@ -1,2 +1,2 @@
$pdf_previewer = "zathura %O %S";
$pdflatex = "xelatex -shell-escape %O %S";
$pdflatex = "xelatex -synctex=1 -shell-escape %O %S";

View File

@ -96,7 +96,7 @@ local lsp_confs = {
},
gopls = {},
dartls = {},
tsserver = {
ts_ls = {
root_dir = find_repo_root({
configfiles = { "tsconfig.json", "jsconfig.json", "package.json" }
}),
@ -168,16 +168,16 @@ for server, conf in pairs(lsp_confs) do
end
end
local null_ls = require('null-ls')
null_ls.setup({
sources = {
null_ls.builtins.diagnostics.chktex,
null_ls.builtins.diagnostics.cppcheck,
null_ls.builtins.diagnostics.shellcheck,
null_ls.builtins.code_actions.gitsigns,
},
})
-- local null_ls = require('null-ls')
-- null_ls.setup({
-- sources = {
-- -- null_ls.builtins.diagnostics.chktex,
-- null_ls.builtins.diagnostics.cppcheck,
-- null_ls.builtins.diagnostics.shellcheck,
--
-- null_ls.builtins.code_actions.gitsigns,
-- },
-- })
vim.diagnostic.config({
severity_sort = true,
@ -226,7 +226,7 @@ M.format_on_save_hook = function()
if enabled ~= 0 and enabled ~= false then
if vim.bo.filetype ~= "plaintex" and vim.bo.filetype ~= "tex" and vim.bo.filetype ~= "latex" and
vim.bo.filetype ~= "qf" and vim.bo.filetype ~= "bib" and vim.bo.filetype ~= "" and vim.bo.filetype ~= "pdf"
and vim.bo.filetype ~= "conf" then
and vim.bo.filetype ~= "conf" and vim.bo.filetype ~= "TelescopePrompt" then
vim.lsp.buf.format({ async = false })
end
end
@ -241,13 +241,14 @@ vim.cmd [[
augroup END
]]
vim.api.nvim_create_autocmd({ 'FileType',
vim.api.nvim_create_autocmd(
{ 'FileType',
}, {
pattern = "*",
callback = function()
if vim.bo.filetype ~= "plaintex" and vim.bo.filetype ~= "tex" and vim.bo.filetype ~= "late" and
if vim.bo.filetype ~= "plaintex" and vim.bo.filetype ~= "tex" and vim.bo.filetype ~= "latex" and
vim.bo.filetype ~= "qf" and vim.bo.filetype ~= "bib" and vim.bo.filetype ~= "" and vim.bo.filetype ~= "pdf"
and vim.bo.filetype ~= "conf" then
and vim.bo.filetype ~= "conf" and vim.bo.filetype ~= "TelescopePrompt" then
vim.cmd [[ :COQnow -s ]]
end
end

View File

@ -14,6 +14,7 @@ o.tabstop = 4
o.shiftwidth = 0
o.viminfo = ''
vim.g.base16colorspace = 256
vim.g.vimtex_view_method = "zathura"
o.termguicolors = true
vim.cmd [[

View File

@ -26,7 +26,7 @@ return require('packer').startup({
run = ':TSUpdate',
config = function()
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
highlight = { enable = true, disable = { "latex" } },
indent = { enable = true },
ensure_installed = "all",
})
@ -177,12 +177,12 @@ return require('packer').startup({
'ms-jpq/coq.artifacts',
},
},
{
'jose-elias-alvarez/null-ls.nvim',
requires = {
'nvim-lua/plenary.nvim',
},
},
-- {
-- 'jose-elias-alvarez/null-ls.nvim',
-- requires = {
-- 'nvim-lua/plenary.nvim',
-- },
-- },
},
config = import('lsp'),
}

View File

@ -23,7 +23,7 @@
\RequirePackage{listings}
\RequirePackage{geometry}
\RequirePackage{graphicx}
\RequirePackage[usenames,dvipsnames]{xcolor}
\RequirePackage[dvipsnames]{xcolor}
\RequirePackage{bm}
\RequirePackage{siunitx}[=v2]
\RequirePackage{physics}