mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
56 lines
1002 B
Lua
56 lines
1002 B
Lua
vim.lsp.enable({
|
|
"lua_ls",
|
|
"hls",
|
|
"rust_analyzer",
|
|
"clangd",
|
|
"basedpyright",
|
|
"nil_ls",
|
|
"ts_ls",
|
|
"yamlls",
|
|
"marksman",
|
|
"texlab",
|
|
"html",
|
|
"cssls",
|
|
"helm_ls",
|
|
"zls",
|
|
"gopls",
|
|
"bashls",
|
|
"jsonls",
|
|
"biome",
|
|
"sqls",
|
|
"roslyn_ls"
|
|
})
|
|
|
|
vim.lsp.on_type_formatting.enable()
|
|
vim.api.nvim_create_autocmd("LspAttach", {
|
|
desc = "Custom lsp attach",
|
|
group = vim.api.nvim_create_augroup("lsp-setup", { clear = true }),
|
|
callback = function(args)
|
|
vim.lsp.document_color.enable(true, args.buf, { style = "virtual" })
|
|
end,
|
|
})
|
|
|
|
return {
|
|
-- see https://github.com/seblyng/roslyn.nvim/pull/178
|
|
{
|
|
"roslyn.nvim",
|
|
ft = { "cs", "vb" },
|
|
opts = {
|
|
broad_search = true,
|
|
},
|
|
after = function(plug)
|
|
vim.lsp.config("roslyn", {
|
|
cmd = {
|
|
'Microsoft.CodeAnalysis.LanguageServer',
|
|
'--logLevel',
|
|
'Information',
|
|
'--extensionLogDirectory',
|
|
vim.fs.joinpath(vim.uv.os_tmpdir(), 'roslyn_ls/logs'),
|
|
'--stdio',
|
|
},
|
|
})
|
|
require("roslyn").setup(plug.opts)
|
|
end,
|
|
},
|
|
}
|