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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
CONFIG_PATH = vim.fn.stdpath "config"
DATA_PATH = vim.fn.stdpath "data"
CACHE_PATH = vim.fn.stdpath "cache"
TERMINAL = vim.fn.expand "$TERMINAL"
O = {
format_on_save = true,
auto_close_tree = 0,
auto_complete = true,
colorscheme = "lunar",
clipboard = "unnamedplus",
hidden_files = true,
wrap_lines = false,
number = true,
relative_number = true,
number_width = 4,
cmdheight = 2,
cursorline = true,
shell = "zsh",
timeoutlen = 100,
nvim_tree_disable_netrw = 0,
ignore_case = true,
smart_case = true,
lushmode = false,
hl_search = false,
document_highlight = false,
transparent_window = false,
leader_key = "space",
vnsip_dir = vim.fn.stdpath "config" .. "/snippets",
-- @usage pass a table with your desired languages
treesitter = {
ensure_installed = "all",
ignore_install = { "haskell" },
highlight = { enabled = true },
-- The below are for treesitter-textobjects plugin
textobj_prefixes = {
goto_next = "]", -- Go to next
goto_previous = "[", -- Go to previous
inner = "i", -- Select inside
outer = "a", -- Selct around
swap = "<leader>a", -- Swap with next
},
textobj_suffixes = {
-- Start and End respectively for the goto keys
-- for other keys it only uses the first
["function"] = { "f", "F" },
["class"] = { "m", "M" },
["parameter"] = { "a", "A" },
["block"] = { "k", "K" },
["conditional"] = { "i", "I" },
["call"] = { "c", "C" },
["loop"] = { "l", "L" },
["statement"] = { "s", "S" },
["comment"] = { "/", "?" },
},
-- The below is for treesitter hint textobjects plugin
hint_labels = { "h", "j", "f", "d", "n", "v", "s", "l", "a" },
},
lsp = {
popup_border = "single",
},
database = { save_location = "~/.config/nvcode_db", auto_execute = 1 },
plugin = {
-- Builtins
dashboard = { active = false },
colorizer = { active = false },
zen = { active = false },
ts_context_commentstring = { active = false },
ts_hintobjects = { active = false },
ts_autotag = { active = false },
ts_textobjects = { active = false },
ts_playground = { active = false },
ts_textsubjects = { active = false },
telescope_fzy = { active = false },
telescope_project = { active = false },
indent_line = { active = false },
symbol_outline = { active = false },
debug = { active = false },
lazygit = { active = false },
lush = { active = false },
diffview = { active = false },
floatterm = { active = false },
trouble = { active = false },
sanegx = { active = false },
vim_rooter = { active = false },
hop = { active = false },
},
user_which_key = {},
user_plugins = {
-- use config.lua for this not put here
},
user_autocommands = {
{ "FileType", "qf", "set nobuflisted" },
},
lang = {
python = {
linter = "",
isort = false,
diagnostics = {
virtual_text = { spacing = 0, prefix = "" },
signs = true,
underline = true,
},
analysis = {
type_checking = "basic",
auto_search_paths = true,
use_library_code_types = true,
},
},
dart = {
sdk_path = "/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot",
},
lua = {
diagnostics = {
virtual_text = { spacing = 0, prefix = "" },
signs = true,
underline = true,
},
},
sh = {
-- @usage can be 'shellcheck'
linter = "",
-- @usage can be 'shfmt'
diagnostics = {
virtual_text = { spacing = 0, prefix = "" },
signs = true,
underline = true,
},
},
tsserver = {
-- @usage can be 'eslint'
linter = "",
diagnostics = {
virtual_text = { spacing = 0, prefix = "" },
signs = true,
underline = true,
},
},
json = {
diagnostics = {
virtual_text = { spacing = 0, prefix = "" },
signs = true,
underline = true,
},
},
tailwindcss = {
filetypes = {
"html",
"css",
"scss",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
},
},
clang = {
diagnostics = {
virtual_text = { spacing = 0, prefix = "" },
signs = true,
underline = true,
},
cross_file_rename = true,
header_insertion = "never",
},
go = {},
elixir = {},
vim = {},
yaml = {},
terraform = {},
rust = {
rust_tools = {
active = false,
},
linter = "",
diagnostics = {
virtual_text = { spacing = 0, prefix = "" },
signs = true,
underline = true,
},
},
latex = {},
kotlin = {},
html = {},
elm = {},
emmet = { active = true },
graphql = {},
efm = {},
docker = {},
cmake = {},
css = {
virtual_text = true,
},
},
dashboard = {
custom_header = {
' ##############..... ############## ',
' ##############......############## ',
' ##########..........########## ',
' ##########........########## ',
' ##########.......########## ',
' ##########.....##########.. ',
' ##########....##########..... ',
' ..##########..##########......... ',
' ....##########.#########............. ',
' ..################JJJ............ ',
' ################............. ',
' ##############.JJJ.JJJJJJJJJJ ',
' ############...JJ...JJ..JJ JJ ',
' ##########....JJ...JJ..JJ JJ ',
' ########......JJJ..JJJ JJJ JJJ ',
' ###### ......... ',
' ..... ',
' . ',
},
},
}
|