- local config = require("plugins.configs.lspconfig")
- local on_attach = config.on_attach
- local capabilities = config.capabilities
- local lspconfig = require("lspconfig")
- lspconfig.omnisharp.setup({
- Jon_attach=on_attach,
- capabilities=capabilities,
- cmd = {"dotnet", os.getenv("HOME") .. "/.local/share/nvim/mason/packages/omnisharp/libexec/OmniSharp.dll"},
- enable_editorconfig_support = true,
- enable_ms_build_load_projects_on_demand = false,
- enable_roslyn_analyzers = false,
- organize_imports_on_format = true,
- enable_import_completion = true,
- sdk_include_prereleases = true,
- analyze_open_documents_only = false,
- })
- lspconfig.pyright.setup({
- on_attach=on_attach,
- capabilities=capabilities,
- filetypes={"python"}
- })
- lspconfig.tsserver.setup({
- on_attach=on_attach,
- capabilities=capabilities,
- filetypes={"javascript"}
- })
- lspconfig.html.setup({
- on_attach=on_attach,
- capabilities=capabilities,
- configurationSection = { "html", "css" },
- embeddedLanguages = {
- css = true,
- javascript = true
- },
- --provideFormatter = true,
- filetypes = { "html", "css" }
- })