This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
70 lines (69 loc) · 1.9 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
local config = {
updater = {
remote = "origin", -- remote to use
channel = "stable", -- "stable" or "nightly"
version = "latest", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY)
branch = "main", -- branch name (NIGHTLY ONLY)
commit = nil, -- commit hash (NIGHTLY ONLY)
pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only)
skip_prompts = false, -- skip prompts about breaking changes
show_changelog = true, -- show the changelog after performing an update
},
colorscheme = "nord",
heirline = {
separators = {
-- https://github.com/ryanoasis/powerline-extra-symbols
-- tab = { "\u{e0ba}", "\u{e0bc}" },
-- tab = { "\u{e0b2}\u{e0c6}", "\u{e0b0}" },
tab = { "\u{e0d4}", "\u{e0d2}" },
},
attributes = {
mode = { bold = true },
},
},
lsp = {
skip_setup = {
"rust_analyzer",
},
formatting = {
format_on_save = {
enabled = true,
allow_filetypes = {
"lua",
},
},
disabled = {},
timeout_ms = 5000,
},
config = {
cssls = {
settings = {
css = {
lint = {
unknownAtRules = "ignore",
},
},
},
},
clangd = {
capabilities = {
offsetEncoding = "utf-8",
},
},
tsserver = function(opts)
opts.root_dir = require("lspconfig.util").root_pattern "package.json"
opts.single_file_support = false
return opts
end,
denols = function(opts)
opts.root_dir = require("lspconfig.util").root_pattern("deno.json", "deno.jsonc")
return opts
end,
eslint = function(opts)
opts.root_dir = require("lspconfig.util").root_pattern("package.json", ".eslintrc.json", ".eslintrc.js")
return opts
end,
},
},
}
return config