-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
85 lines (70 loc) · 1.51 KB
/
Copy pathinit.lua
File metadata and controls
85 lines (70 loc) · 1.51 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
75
76
77
78
79
80
81
82
83
84
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.wrap = false
vim.pack.add({
{ src = "https://github.com/neovim/nvim-lspconfig" }, -- LSP configs
-- { src = "https://github.com/Saghen/blink.cmp" }, -- Completion
{ src = "https://github.com/nvim-treesitter/nvim-treesitter" }, -- Syntax/parser
-- { src = "https://github.com/stevearc/conform.nvim" }, -- Formatting
-- { src = "https://github.com/mfussenegger/nvim-dap" }, -- Debugger
})
vim.lsp.config("lua_ls", {
settings = {
Lua = {
diagnostics = {
globals = { "vim" },
},
telemetry = {
enable = false,
},
},
},
})
vim.diagnostic.config({
virtual_text = true,
signs = true,
underline = true,
severity_sort = true,
float = {
border = "rounded",
source = "if_many",
},
update_in_insert = true,
})
vim.lsp.config("rust_analyzer", {
cmd = {
"rust-analyzer",
},
filetypes = {
"rust",
},
root_markers = {
"Cargo.toml",
"Cargo.lock",
".git",
},
})
vim.lsp.config("roslyn", {
cmd = {
"roslyn-language-server",
"--stdio",
},
filetypes = {
"cs",
},
root_markers = {
"*.sln",
"*.slnx",
"*.csproj",
".git",
},
})
vim.lsp.config("ts_ls", {})
vim.lsp.config("jsonls", {})
vim.lsp.enable({
"lua_ls",
"rust_analyzer",
"roslyn",
"ts_ls",
"jsonls",
})