-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpack.lua
More file actions
74 lines (72 loc) · 1.99 KB
/
Copy pathpack.lua
File metadata and controls
74 lines (72 loc) · 1.99 KB
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
vim.pack.add({
'https://github.com/mofiqul/dracula.nvim',
'https://github.com/nvim-mini/mini.pick',
'https://github.com/nvim-mini/mini.indentscope',
'https://github.com/neovim/nvim-lspconfig',
'https://github.com/rafamadriz/friendly-snippets',
'https://github.com/nvim-mini/mini.statusline',
'https://github.com/nvim-mini/mini.pairs',
'https://github.com/nvim-mini/mini-git',
'https://github.com/nvim-mini/mini.diff',
'https://github.com/nvim-mini/mini.tabline',
'https://github.com/nvim-mini/mini.completion',
'https://github.com/nvim-mini/mini.snippets',
})
require('mini.completion').setup({
lsp_completion = {
process_items = function(items)
for _, item in ipairs(items) do
if type(item.labelDetails) ~= 'table' then
item.labelDetails = nil
else
if type(item.labelDetails.detail) ~= 'string' then
item.labelDetails.detail = nil
end
if type(item.labelDetails.description) ~= 'string' then
item.labelDetails.description = nil
end
end
if type(item.detail) ~= 'string' then
item.detail = nil
end
if type(item.documentation) == 'table' then
if type(item.documentation.value) ~= 'string' then
item.documentation.value = nil
end
elseif type(item.documentation) ~= 'string' then
item.documentation = nil
end
end
return items
end,
},
})
require('mini.snippets').setup({
snippets = {
require('mini.snippets').gen_loader.from_lang(),
}
})
MiniSnippets.start_lsp_server()
require('mini.pick').setup()
require('mini.indentscope').setup()
require('mini.pairs').setup()
require('mini.statusline').setup()
require('mini.git').setup()
require('mini.diff').setup()
require('mini.tabline').setup()
local servers = {
"html",
"cssls",
"clangd",
"nixd",
"jedi_language_server",
"gopls",
"glsl_analyzer"
}
vim.lsp.config('clangd', {
cmd = {"clangd", "--background-index", "--clang-tidy", "--header-insertion=never"}
})
vim.lsp.config('glsl_analyzer', {
single_file_support = true,
})
vim.lsp.enable(servers)