fix(nvim): set config file for latex indenting
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
3d367b0230
commit
906a6ddf84
1 changed files with 17 additions and 2 deletions
|
@ -30,7 +30,6 @@ in
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
startup_commands = "toggle_custom_color";
|
startup_commands = "toggle_custom_color";
|
||||||
# TODO: make sure the font is applied
|
|
||||||
ui_font = "JetBrainsMono Nerd Font Mono Regular";
|
ui_font = "JetBrainsMono Nerd Font Mono Regular";
|
||||||
font_size = "24";
|
font_size = "24";
|
||||||
source = "${dracula-theme}/dracula.config";
|
source = "${dracula-theme}/dracula.config";
|
||||||
|
@ -55,7 +54,18 @@ in
|
||||||
local lsp = require('lspconfig');
|
local lsp = require('lspconfig');
|
||||||
local coq = require('coq');
|
local coq = require('coq');
|
||||||
|
|
||||||
lsp.texlab.setup(coq.lsp_ensure_capabilities({}));
|
lsp.texlab.setup(coq.lsp_ensure_capabilities({
|
||||||
|
settings = {
|
||||||
|
texlab = {
|
||||||
|
formatterLineLength = 100,
|
||||||
|
latexFormatter = 'latexindent',
|
||||||
|
latexindent = {
|
||||||
|
modifyLineBreaks = false,
|
||||||
|
["local"] = '.indentconfig.yaml';
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}));
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
|
@ -79,6 +89,11 @@ in
|
||||||
lua
|
lua
|
||||||
*/
|
*/
|
||||||
''
|
''
|
||||||
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
pattern = 'tex',
|
||||||
|
command = 'setlocal ts=4 sw=4 sts=0 expandtab',
|
||||||
|
});
|
||||||
|
|
||||||
local gknapsettings = {
|
local gknapsettings = {
|
||||||
-- HTML
|
-- HTML
|
||||||
htmloutputext = "html",
|
htmloutputext = "html",
|
||||||
|
|
Loading…
Reference in a new issue