aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2023-10-17 00:16:25 -0300
committerElvis Claros Castro <elvis@claros.ar>2023-10-17 00:16:25 -0300
commit5a0f64d67f1981dad243f6d328664139e49ce664 (patch)
treeb4c7a39855c1154298a26979e51c84d7391335e0 /lua/alpha
parent9f7ef8669223eb7cdaf3f580dc8b6a7926807231 (diff)
downloadnvim-conf-5a0f64d67f1981dad243f6d328664139e49ce664.tar.gz
nvim-conf-5a0f64d67f1981dad243f6d328664139e49ce664.zip
commit initial epii
Diffstat (limited to 'lua/alpha')
-rw-r--r--lua/alpha/dap/init.lua4
-rw-r--r--lua/alpha/lsp/default.lua1
-rw-r--r--lua/alpha/lsp/servers/texlab.lua16
3 files changed, 19 insertions, 2 deletions
diff --git a/lua/alpha/dap/init.lua b/lua/alpha/dap/init.lua
index 81651f7..44b3e50 100644
--- a/lua/alpha/dap/init.lua
+++ b/lua/alpha/dap/init.lua
@@ -25,7 +25,7 @@ dapui.setup {
"stacks",
"watches",
},
- size = 80,
+ size = 50,
position = "right",
},
{
@@ -33,7 +33,7 @@ dapui.setup {
"repl",
"console",
},
- size = 10,
+ size = 7,
position = "bottom",
},
},
diff --git a/lua/alpha/lsp/default.lua b/lua/alpha/lsp/default.lua
index 4f53ddd..639282d 100644
--- a/lua/alpha/lsp/default.lua
+++ b/lua/alpha/lsp/default.lua
@@ -16,6 +16,7 @@ return {
tailwindcss = { enable = true, filetypes = {"blade", "html", "svelte"} },
tsserver = { enable = true },
volar = { enable = true },
+ texlab = { enable = true, filetypes = {"tex", "bib"} },
},
default_options = function (options)
return vim.tbl_deep_extend("force", {
diff --git a/lua/alpha/lsp/servers/texlab.lua b/lua/alpha/lsp/servers/texlab.lua
new file mode 100644
index 0000000..d749db9
--- /dev/null
+++ b/lua/alpha/lsp/servers/texlab.lua
@@ -0,0 +1,16 @@
+local lsp_attach = require "alpha.lsp.attach"
+local lsp_flags = require "alpha.lsp.flags"
+return function(ops)
+ return vim.tbl_extend("force", {
+ on_attach = lsp_attach,
+ flags = lsp_flags,
+ settings = {
+ ["texlab"] = {
+ latexFormatter = "latexindent",
+ latexindent = {
+ modifyLineBreaks = false
+ }
+ }
+ }
+ }, ops)
+end