Update 24.01.2024

This commit is contained in:
Kristofers Solo
2024-01-24 21:28:12 +02:00
parent f37a67d62f
commit 5f7013e770
105 changed files with 3389 additions and 2488 deletions

14
lua/plugins/lsp/bash.lua Normal file
View File

@@ -0,0 +1,14 @@
local M = {}
M.setup = function(lsp, capabilities)
lsp.bashls.setup({
capabilities = capabilities,
filetypes = {
"sh",
"bash",
"zsh",
},
})
end
return M

9
lua/plugins/lsp/c.lua Normal file
View File

@@ -0,0 +1,9 @@
local M = {}
M.setup = function(lsp, capabilities)
lsp.clangd.setup({
capabilities = capabilities,
})
end
return M

20
lua/plugins/lsp/emmet.lua Normal file
View File

@@ -0,0 +1,20 @@
local M = {}
M.setup = function(lsp, capabilities)
lsp.emmet_ls.setup({
capabilities = capabilities,
filetypes = {
"html",
"htmldjango",
"typescriptreact",
"javascriptreact",
"css",
"sass",
"scss",
"less",
"eruby",
},
})
end
return M

42
lua/plugins/lsp/lua.lua Normal file
View File

@@ -0,0 +1,42 @@
local M = {}
M.setup = function(lsp, capabilities)
lsp.lua_ls.setup({
capabilities = capabilities,
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = "LuaJIT",
},
diagnostics = {
-- Get the language server to recognize the `vim` global
globals = { "vim", "awesome", "client" },
},
-- workspace = {
-- Make the server aware of Neovim runtime files
-- library = vim.api.nvim_get_runtime_file("", true),
-- },
-- Do not send telemetry data containing a randomized but unique identifier
telemetry = {
enable = false,
},
root_pattern = {
".stylua.toml",
".luarc.json",
".luarc.jsonc",
".luacheckrc",
"stylua.toml",
"selene.toml",
"selene.yml",
".git",
},
format = {
enable = false,
},
},
},
})
end
return M

32
lua/plugins/lsp/tex.lua Normal file
View File

@@ -0,0 +1,32 @@
local M = {}
M.setup = function(lsp, capabilities)
lsp.texlab.setup({
capabilities = capabilities,
texlab = {
auxDirectory = ".",
bibtexFormatter = "texlab",
build = {
args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
executable = "xelatex",
forwardSearchAfter = false,
onSave = false,
},
chktex = {
onEdit = false,
onOpenAndSave = false,
},
diagnosticsDelay = 0,
formatterLineLength = 120,
forwardSearch = {
args = {},
},
latexFormatter = "latexindent",
latexindent = {
modifyLineBreaks = false,
},
},
})
end
return M

12
lua/plugins/lsp/typst.lua Normal file
View File

@@ -0,0 +1,12 @@
local M = {}
M.setup = function(lsp, capabilities)
lsp.lua_ls.setup({
capabilities = capabilities,
settings = {
exportPdf = "onSave",
},
})
end
return M