This repository was archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsv-config.example.lua
104 lines (89 loc) · 1.95 KB
/
sv-config.example.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
-- This is a example config.
-- 'Sv' is the global options object
-- General Settings
Sv.pumheight = 20
Sv.timeoutlen = 100
Sv.shell = "zsh"
Sv.undofile = true
Sv.leader_key = "space"
Sv.colorscheme = "stardark"
Sv.format_on_save = true
-- TreeSitter parsers config
Sv.treesitter.ensure_installed = {
"lua",
-- "bash",
-- "json",
-- "python",
-- "c",
-- "c_sharp",
-- "clojure",
-- "comment",
-- "cpp",
-- "commonlisp",
-- "cuda",
-- "dart",
-- "devicetree",
-- "dockerfile",
-- "elixir",
-- "erlang",
-- "go",
-- "fish",
-- "haskell",
-- "java",
-- "jsdoc",
-- "graphql",
-- "julia",
-- "kotlin",
-- "ledger",
-- "latex",
-- "php",
-- "nix",
-- "ocamel",
-- "ql",
-- "regex",
-- "ruby",
-- "rust",
-- "rst",
-- "scss",
-- "sparql",
-- "teal",
-- "toml",
-- "typescript",
-- "vue",
-- "yaml",
-- "zig"
}
Sv.treesitter.ignore_install = { "haskell" }
Sv.treesitter.highlight.enabled = true
-- lua
-- Sv.lang.lua.formatter.exe = "stylua"
-- python
-- Sv.lang.python.isort = true
-- Sv.lang.python.diagnostics.virtual_text = true
-- Sv.lang.python.analysis.use_library_code_types = true
-- to change default formatter from yapf to black
-- Sv.lang.python.formatter.exe = "black"
-- Sv.lang.python.formatter.args = {"-"}
-- go
-- to change default formatter from gofmt to goimports
-- Sv.lang.go.formatter.exe = "goimports"
-- javascript formatter is prettier
-- rust
-- Sv.lang.rust.formatter = {
-- exe = "rustfmt",
-- args = { "--emit=stdout" },
-- }
-- Additional Plugins
-- Sv.user_plugins = {
-- {"kyazdani42/blue-moon"},
-- }
-- Additional Leader bindings for WhichKey
-- Sv.user_which_key = {
-- A = {
-- name = "+Custom Leader Keys",
-- a = { "<cmd>'Command for a key'<cr>", "Description for a" },
-- b = { "<cmd>'Command for b key'<cr>", "Description for b" },
-- },
-- }
-- Additional Autocommands
-- Sv.user_autocommands = { }