馃敀 Backup for my config files
dotfiles
1---@type vim.lsp.Config
2local lua_ls = {
3 ---@type lspconfig.settings.lua_ls
4 settings = {
5 Lua = {
6 runtime = { version = "LuaJIT" },
7 diagnostics = { globals = { "vim", "require" } },
8 workspace = {
9 preloadFileSize = 10000,
10 library = { vim.env.VIMRUNTIME, "${3rd}/love2d/library" },
11 },
12 },
13 },
14}
15
16---@type vim.lsp.Config
17local yamlls = {
18 settings = {
19 redhat = {
20 telemetry = { enabled = false },
21 },
22 },
23}
24
25---@type vim.lsp.Config
26local tailwindcss = {
27 filetypes_include = { "gleam" },
28 settings = {
29 tailwindCSS = {
30 includeLanguages = { gleam = "javascript" },
31 classFunctions = { "class", "classes" },
32 },
33 },
34}
35
36---@type vim.lsp.Config
37local sqruff = {
38 filetypes_include = { "sql" },
39 cmd = { "sqruff", "lsp" },
40}
41
42---@type vim.lsp.Config
43local gdscript = {
44 cmd = vim.lsp.rpc.connect("127.0.0.1", tonumber(os.getenv("GDScript_Port") or "6005")),
45 filetypes = { "gd", "gdscript" },
46 root_markers = { "project.godot", ".git", ".jj" },
47}
48
49---@type vim.lsp.Config
50local elp = {
51 filetypes_include = { "erl" },
52}
53
54return {
55 "neovim/nvim-lspconfig",
56 opts = {
57 servers = {
58 yamlls = yamlls,
59 lua_ls = lua_ls,
60 tailwindcss = tailwindcss,
61 sqruff = sqruff,
62 gdscript = gdscript,
63 elp = elp,
64 },
65 },
66}