default-config.lua 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  1. CONFIG_PATH = os.getenv "HOME" .. "/.local/share/lunarvim/lvim"
  2. DATA_PATH = vim.fn.stdpath "data"
  3. CACHE_PATH = vim.fn.stdpath "cache"
  4. TERMINAL = vim.fn.expand "$TERMINAL"
  5. USER = vim.fn.expand "$USER"
  6. lvim = {
  7. leader = "space",
  8. colorscheme = "spacegray",
  9. line_wrap_cursor_movement = true,
  10. transparent_window = false,
  11. format_on_save = true,
  12. vsnip_dir = os.getenv "HOME" .. "/.config/snippets",
  13. database = { save_location = "~/.config/lunarvim_db", auto_execute = 1 },
  14. keys = {},
  15. -- TODO why do we need this?
  16. builtin = {
  17. lspinstall = {},
  18. telescope = {},
  19. compe = {},
  20. autopairs = {},
  21. treesitter = {},
  22. nvimtree = {},
  23. gitsigns = {},
  24. which_key = {},
  25. comment = {},
  26. rooter = {},
  27. galaxyline = {},
  28. bufferline = {},
  29. dap = {},
  30. dashboard = {},
  31. terminal = {},
  32. },
  33. lsp = {
  34. diagnostics = {
  35. virtual_text = {
  36. prefix = "",
  37. spacing = 0,
  38. },
  39. signs = true,
  40. underline = true,
  41. },
  42. override = {},
  43. document_highlight = true,
  44. popup_border = "single",
  45. default_keybinds = true,
  46. on_attach_callback = nil,
  47. },
  48. plugins = {
  49. -- use lv-config.lua for this not put here
  50. },
  51. autocommands = {},
  52. }
  53. local schemas = nil
  54. local common_on_attach = require("lsp").common_on_attach
  55. local common_capabilities = require("lsp").common_capabilities()
  56. local status_ok, jsonls_settings = pcall(require, "nlspsettings.jsonls")
  57. if status_ok then
  58. schemas = jsonls_settings.get_default_schemas()
  59. end
  60. -- TODO move all of this into lang specific files, only require when using
  61. lvim.lang = {
  62. c = {
  63. formatter = {
  64. exe = "clang_format",
  65. args = {},
  66. stdin = true,
  67. },
  68. linters = {
  69. "clangtidy",
  70. },
  71. lsp = {
  72. provider = "clangd",
  73. setup = {
  74. cmd = {
  75. DATA_PATH .. "/lspinstall/cpp/clangd/bin/clangd",
  76. "--background-index",
  77. "--header-insertion=never",
  78. "--cross-file-rename",
  79. "--clang-tidy",
  80. "--clang-tidy-checks=-*,llvm-*,clang-analyzer-*",
  81. },
  82. on_attach = common_on_attach,
  83. capabilities = common_capabilities,
  84. },
  85. },
  86. },
  87. cpp = {
  88. formatter = {
  89. exe = "clang_format",
  90. args = {},
  91. stdin = true,
  92. },
  93. linters = {
  94. "cppcheck",
  95. "clangtidy",
  96. },
  97. lsp = {
  98. provider = "clangd",
  99. setup = {
  100. cmd = {
  101. DATA_PATH .. "/lspinstall/cpp/clangd/bin/clangd",
  102. "--background-index",
  103. "--header-insertion=never",
  104. "--cross-file-rename",
  105. "--clang-tidy",
  106. "--clang-tidy-checks=-*,llvm-*,clang-analyzer-*",
  107. },
  108. on_attach = common_on_attach,
  109. capabilities = common_capabilities,
  110. },
  111. },
  112. },
  113. cs = {
  114. formatter = {
  115. exe = "",
  116. args = {},
  117. },
  118. linters = {},
  119. lsp = {
  120. provider = "omnisharp",
  121. setup = {
  122. cmd = {
  123. DATA_PATH .. "/lspinstall/csharp/omnisharp/run",
  124. "--stdio",
  125. },
  126. on_attach = common_on_attach,
  127. capabilities = common_capabilities,
  128. },
  129. },
  130. },
  131. cmake = {
  132. formatter = {
  133. exe = "clang_format",
  134. args = {},
  135. },
  136. linters = {},
  137. lsp = {
  138. provider = "cmake",
  139. setup = {
  140. cmd = {
  141. DATA_PATH .. "/lspinstall/cmake/venv/bin/cmake-language-server",
  142. "--stdio",
  143. },
  144. on_attach = common_on_attach,
  145. capabilities = common_capabilities,
  146. },
  147. },
  148. },
  149. clojure = {
  150. formatter = {
  151. exe = "",
  152. args = {},
  153. },
  154. linters = {},
  155. lsp = {
  156. provider = "clojure_lsp",
  157. setup = {
  158. cmd = {
  159. DATA_PATH .. "/lspinstall/clojure/clojure-lsp",
  160. "--stdio",
  161. },
  162. on_attach = common_on_attach,
  163. capabilities = common_capabilities,
  164. },
  165. },
  166. },
  167. css = {
  168. formatter = {
  169. exe = "prettier",
  170. args = {},
  171. },
  172. linters = {},
  173. lsp = {
  174. provider = "cssls",
  175. setup = {
  176. cmd = {
  177. "node",
  178. DATA_PATH .. "/lspinstall/css/vscode-css/css-language-features/server/dist/node/cssServerMain.js",
  179. "--stdio",
  180. },
  181. on_attach = common_on_attach,
  182. capabilities = common_capabilities,
  183. },
  184. },
  185. },
  186. dart = {
  187. formatter = {
  188. exe = "dart",
  189. args = { "format" },
  190. stdin = true,
  191. },
  192. linters = {},
  193. lsp = {
  194. provider = "dartls",
  195. setup = {
  196. cmd = {
  197. "dart",
  198. "/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot",
  199. "--lsp",
  200. },
  201. on_attach = common_on_attach,
  202. capabilities = common_capabilities,
  203. },
  204. },
  205. },
  206. docker = {
  207. formatter = {
  208. exe = "",
  209. args = {},
  210. },
  211. linters = {},
  212. lsp = {
  213. provider = "dockerls",
  214. setup = {
  215. cmd = {
  216. DATA_PATH .. "/lspinstall/dockerfile/node_modules/.bin/docker-langserver",
  217. "--stdio",
  218. },
  219. on_attach = common_on_attach,
  220. capabilities = common_capabilities,
  221. },
  222. },
  223. },
  224. elixir = {
  225. formatter = {
  226. exe = "mix",
  227. args = { "format" },
  228. stdin = true,
  229. },
  230. linters = {},
  231. lsp = {
  232. provider = "elixirls",
  233. setup = {
  234. cmd = {
  235. DATA_PATH .. "/lspinstall/elixir/elixir-ls/language_server.sh",
  236. },
  237. on_attach = common_on_attach,
  238. capabilities = common_capabilities,
  239. },
  240. },
  241. },
  242. elm = {
  243. formatter = {
  244. exe = "",
  245. args = {},
  246. stdin = true,
  247. },
  248. linters = {},
  249. lsp = {
  250. provider = "elmls",
  251. setup = {
  252. cmd = {
  253. DATA_PATH .. "/lspinstall/elm/node_modules/.bin/elm-language-server",
  254. },
  255. on_attach = common_on_attach,
  256. init_options = {
  257. elmAnalyseTrigger = "change",
  258. elmFormatPath = DATA_PATH .. "/lspinstall/elm/node_modules/.bin/elm-format",
  259. elmPath = DATA_PATH .. "/lspinstall/elm/node_modules/.bin/",
  260. elmTestPath = DATA_PATH .. "/lspinstall/elm/node_modules/.bin/elm-test",
  261. },
  262. },
  263. },
  264. },
  265. erlang = {
  266. formatter = {
  267. exe = "",
  268. args = {},
  269. },
  270. linters = {},
  271. lsp = {
  272. provider = "erlangls",
  273. setup = {
  274. cmd = {
  275. "erlang_ls",
  276. },
  277. on_attach = common_on_attach,
  278. capabilities = common_capabilities,
  279. },
  280. },
  281. },
  282. emmet = { active = false },
  283. go = {
  284. formatter = {
  285. exe = "gofmt",
  286. args = {},
  287. stdin = true,
  288. },
  289. linters = {
  290. "golangcilint",
  291. "revive",
  292. },
  293. lsp = {
  294. provider = "gopls",
  295. setup = {
  296. cmd = {
  297. DATA_PATH .. "/lspinstall/go/gopls",
  298. },
  299. on_attach = common_on_attach,
  300. capabilities = common_capabilities,
  301. },
  302. },
  303. },
  304. graphql = {
  305. formatter = {
  306. exe = "",
  307. args = {},
  308. },
  309. linters = {},
  310. lsp = {
  311. provider = "graphql",
  312. setup = {
  313. cmd = {
  314. "graphql-lsp",
  315. "server",
  316. "-m",
  317. "stream",
  318. },
  319. on_attach = common_on_attach,
  320. capabilities = common_capabilities,
  321. },
  322. },
  323. },
  324. html = {
  325. formatter = {
  326. exe = "prettier",
  327. args = {},
  328. },
  329. linters = {
  330. "tidy",
  331. -- https://docs.errata.ai/vale/scoping#html
  332. "vale",
  333. },
  334. lsp = {
  335. provider = "html",
  336. setup = {
  337. cmd = {
  338. "node",
  339. DATA_PATH .. "/lspinstall/html/vscode-html/html-language-features/server/dist/node/htmlServerMain.js",
  340. "--stdio",
  341. },
  342. on_attach = common_on_attach,
  343. capabilities = common_capabilities,
  344. },
  345. },
  346. },
  347. java = {
  348. formatter = {
  349. exe = "prettier",
  350. args = { "--stdin-filepath", vim.api.nvim_buf_get_name(0) },
  351. },
  352. linters = {},
  353. lsp = {
  354. provider = "jdtls",
  355. setup = {
  356. cmd = { DATA_PATH .. "/lspinstall/java/jdtls.sh" },
  357. on_attach = common_on_attach,
  358. capabilities = common_capabilities,
  359. },
  360. },
  361. },
  362. json = {
  363. formatter = {
  364. exe = "python",
  365. args = { "-m", "json.tool" },
  366. stdin = true,
  367. },
  368. linters = {},
  369. lsp = {
  370. provider = "jsonls",
  371. setup = {
  372. cmd = {
  373. "node",
  374. DATA_PATH .. "/lspinstall/json/vscode-json/json-language-features/server/dist/node/jsonServerMain.js",
  375. "--stdio",
  376. },
  377. on_attach = common_on_attach,
  378. capabilities = common_capabilities,
  379. settings = {
  380. json = {
  381. schemas = schemas,
  382. -- = {
  383. -- {
  384. -- fileMatch = { "package.json" },
  385. -- url = "https://json.schemastore.org/package.json",
  386. -- },
  387. -- },
  388. },
  389. },
  390. commands = {
  391. Format = {
  392. function()
  393. vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 })
  394. end,
  395. },
  396. },
  397. },
  398. },
  399. },
  400. julia = {
  401. formatter = {
  402. exe = "",
  403. args = {},
  404. },
  405. linters = {},
  406. lsp = {
  407. provider = "julials",
  408. setup = {
  409. {
  410. "julia",
  411. "--startup-file=no",
  412. "--history-file=no",
  413. -- vim.fn.expand "~/.config/nvim/lua/lsp/julia/run.jl",
  414. CONFIG_PATH .. "/utils/julia/run.jl",
  415. },
  416. on_attach = common_on_attach,
  417. capabilities = common_capabilities,
  418. },
  419. },
  420. },
  421. kotlin = {
  422. formatter = {
  423. exe = "",
  424. args = {},
  425. },
  426. linters = {},
  427. lsp = {
  428. provider = "kotlin_language_server",
  429. setup = {
  430. cmd = {
  431. DATA_PATH .. "/lspinstall/kotlin/server/bin/kotlin-language-server",
  432. },
  433. on_attach = common_on_attach,
  434. root_dir = function(fname)
  435. local util = require "lspconfig/util"
  436. local root_files = {
  437. "settings.gradle", -- Gradle (multi-project)
  438. "settings.gradle.kts", -- Gradle (multi-project)
  439. "build.xml", -- Ant
  440. "pom.xml", -- Maven
  441. }
  442. local fallback_root_files = {
  443. "build.gradle", -- Gradle
  444. "build.gradle.kts", -- Gradle
  445. }
  446. return util.root_pattern(unpack(root_files))(fname) or util.root_pattern(unpack(fallback_root_files))(fname)
  447. end,
  448. },
  449. },
  450. },
  451. lua = {
  452. formatter = {
  453. exe = "stylua",
  454. args = {},
  455. },
  456. linters = { "luacheck" },
  457. lsp = {
  458. provider = "sumneko_lua",
  459. setup = {
  460. cmd = {
  461. DATA_PATH .. "/lspinstall/lua/sumneko-lua-language-server",
  462. "-E",
  463. DATA_PATH .. "/lspinstall/lua/main.lua",
  464. },
  465. on_attach = common_on_attach,
  466. settings = {
  467. Lua = {
  468. runtime = {
  469. -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
  470. version = "LuaJIT",
  471. -- Setup your lua path
  472. path = vim.split(package.path, ";"),
  473. },
  474. diagnostics = {
  475. -- Get the language server to recognize the `vim` global
  476. globals = { "vim", "lvim" },
  477. },
  478. workspace = {
  479. -- Make the server aware of Neovim runtime files
  480. library = {
  481. [vim.fn.expand "~/.local/share/lunarvim/lvim/lua"] = true,
  482. [vim.fn.expand "$VIMRUNTIME/lua"] = true,
  483. [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true,
  484. },
  485. maxPreload = 100000,
  486. preloadFileSize = 1000,
  487. },
  488. },
  489. },
  490. },
  491. },
  492. },
  493. php = {
  494. formatter = {
  495. exe = "phpcbf",
  496. args = { "--standard=PSR12", vim.api.nvim_buf_get_name(0) },
  497. },
  498. linters = {},
  499. lsp = {
  500. provider = "intelephense",
  501. setup = {
  502. cmd = {
  503. DATA_PATH .. "/lspinstall/php/node_modules/.bin/intelephense",
  504. "--stdio",
  505. },
  506. on_attach = common_on_attach,
  507. filetypes = { "php", "phtml" },
  508. settings = {
  509. intelephense = {
  510. environment = {
  511. phpVersion = "7.4",
  512. },
  513. },
  514. },
  515. },
  516. },
  517. },
  518. javascript = {
  519. -- @usage can be prettier or eslint
  520. formatter = {
  521. exe = "prettier",
  522. args = {},
  523. },
  524. linters = {
  525. "eslint",
  526. },
  527. lsp = {
  528. provider = "tsserver",
  529. setup = {
  530. cmd = {
  531. -- TODO:
  532. DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
  533. "--stdio",
  534. },
  535. on_attach = require("lsp").common_on_attach,
  536. capabilities = require("lsp").common_capabilities(),
  537. },
  538. },
  539. },
  540. javascriptreact = {
  541. -- @usage can be prettier or eslint
  542. formatter = {
  543. exe = "prettier",
  544. args = {},
  545. },
  546. linters = {
  547. "eslint",
  548. },
  549. lsp = {
  550. provider = "tsserver",
  551. setup = {
  552. cmd = {
  553. -- TODO:
  554. DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
  555. "--stdio",
  556. },
  557. on_attach = require("lsp").common_on_attach,
  558. capabilities = require("lsp").common_capabilities(),
  559. },
  560. },
  561. },
  562. python = {
  563. -- @usage can be flake8 or yapf
  564. formatter = {
  565. exe = "black",
  566. args = {},
  567. },
  568. linters = {
  569. "flake8",
  570. "pylint",
  571. "mypy",
  572. },
  573. lsp = {
  574. provider = "pyright",
  575. setup = {
  576. cmd = {
  577. DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver",
  578. "--stdio",
  579. },
  580. on_attach = common_on_attach,
  581. capabilities = common_capabilities,
  582. },
  583. },
  584. },
  585. -- R -e 'install.packages("formatR",repos = "http://cran.us.r-project.org")'
  586. -- R -e 'install.packages("readr",repos = "http://cran.us.r-project.org")'
  587. r = {
  588. formatter = {
  589. exe = "",
  590. args = {},
  591. },
  592. linters = {},
  593. lsp = {
  594. provider = "r_language_server",
  595. setup = {
  596. cmd = {
  597. "R",
  598. "--slave",
  599. "-e",
  600. "languageserver::run()",
  601. },
  602. on_attach = common_on_attach,
  603. capabilities = common_capabilities,
  604. },
  605. },
  606. },
  607. ruby = {
  608. formatter = {
  609. exe = "rufo",
  610. args = {},
  611. },
  612. linters = { "ruby" },
  613. lsp = {
  614. provider = "solargraph",
  615. setup = {
  616. cmd = {
  617. DATA_PATH .. "/lspinstall/ruby/solargraph/solargraph",
  618. "stdio",
  619. },
  620. on_attach = common_on_attach,
  621. capabilities = common_capabilities,
  622. },
  623. },
  624. },
  625. rust = {
  626. formatter = {
  627. exe = "",
  628. args = {},
  629. },
  630. linters = {},
  631. lsp = {
  632. provider = "rust_analyzer",
  633. setup = {
  634. cmd = {
  635. DATA_PATH .. "/lspinstall/rust/rust-analyzer",
  636. },
  637. on_attach = common_on_attach,
  638. capabilities = common_capabilities,
  639. },
  640. },
  641. },
  642. scala = {
  643. formatter = {
  644. exe = "",
  645. args = {},
  646. },
  647. linters = { "" },
  648. lsp = {
  649. provider = "metals",
  650. setup = {
  651. on_attach = common_on_attach,
  652. capabilities = common_capabilities,
  653. },
  654. },
  655. },
  656. sh = {
  657. -- @usage can be 'shfmt'
  658. formatter = {
  659. exe = "shfmt",
  660. args = {},
  661. },
  662. -- @usage can be 'shellcheck'
  663. linters = { "shellcheck" },
  664. lsp = {
  665. provider = "bashls",
  666. setup = {
  667. cmd = {
  668. DATA_PATH .. "/lspinstall/bash/node_modules/.bin/bash-language-server",
  669. "start",
  670. },
  671. on_attach = common_on_attach,
  672. capabilities = common_capabilities,
  673. },
  674. },
  675. },
  676. svelte = {
  677. formatter = {
  678. exe = "",
  679. args = {},
  680. },
  681. linters = {},
  682. lsp = {
  683. provider = "svelte",
  684. setup = {
  685. cmd = {
  686. DATA_PATH .. "/lspinstall/svelte/node_modules/.bin/svelteserver",
  687. "--stdio",
  688. },
  689. on_attach = common_on_attach,
  690. capabilities = common_capabilities,
  691. },
  692. },
  693. },
  694. swift = {
  695. formatter = {
  696. exe = "swiftformat",
  697. args = {},
  698. },
  699. linters = {},
  700. lsp = {
  701. provider = "sourcekit",
  702. setup = {
  703. cmd = {
  704. "xcrun",
  705. "sourcekit-lsp",
  706. },
  707. on_attach = common_on_attach,
  708. capabilities = common_capabilities,
  709. },
  710. },
  711. },
  712. tailwindcss = {
  713. active = false,
  714. filetypes = {
  715. "html",
  716. "css",
  717. "scss",
  718. "javascript",
  719. "javascriptreact",
  720. "typescript",
  721. "typescriptreact",
  722. },
  723. },
  724. terraform = {
  725. formatter = {
  726. exe = "",
  727. args = {},
  728. stdin = false,
  729. },
  730. linters = {},
  731. lsp = {
  732. provider = "terraformls",
  733. setup = {
  734. cmd = {
  735. DATA_PATH .. "/lspinstall/terraform/terraform-ls",
  736. "serve",
  737. },
  738. on_attach = common_on_attach,
  739. capabilities = common_capabilities,
  740. },
  741. },
  742. },
  743. tex = {
  744. formatter = {
  745. exe = "latexindent",
  746. args = {},
  747. stdin = false,
  748. },
  749. linters = { "chketx" },
  750. lsp = {
  751. provider = "texlab",
  752. setup = {
  753. cmd = { DATA_PATH .. "/lspinstall/latex/texlab" },
  754. on_attach = common_on_attach,
  755. capabilities = common_capabilities,
  756. },
  757. },
  758. },
  759. typescript = {
  760. -- @usage can be prettier or eslint
  761. formatter = {
  762. exe = "prettier",
  763. args = {},
  764. },
  765. linters = {
  766. "eslint",
  767. },
  768. lsp = {
  769. provider = "tsserver",
  770. setup = {
  771. cmd = {
  772. -- TODO:
  773. DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
  774. "--stdio",
  775. },
  776. on_attach = require("lsp").common_on_attach,
  777. capabilities = require("lsp").common_capabilities(),
  778. },
  779. },
  780. },
  781. typescriptreact = {
  782. -- @usage can be prettier or eslint
  783. formatter = {
  784. exe = "prettier",
  785. args = {},
  786. },
  787. linters = {
  788. "eslint",
  789. },
  790. lsp = {
  791. provider = "tsserver",
  792. setup = {
  793. cmd = {
  794. -- TODO:
  795. DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
  796. "--stdio",
  797. },
  798. on_attach = require("lsp").common_on_attach,
  799. capabilities = require("lsp").common_capabilities(),
  800. },
  801. },
  802. },
  803. vim = {
  804. formatter = {
  805. exe = "",
  806. args = {},
  807. },
  808. linters = { "" },
  809. lsp = {
  810. provider = "vimls",
  811. setup = {
  812. cmd = {
  813. DATA_PATH .. "/lspinstall/vim/node_modules/.bin/vim-language-server",
  814. "--stdio",
  815. },
  816. on_attach = common_on_attach,
  817. capabilities = common_capabilities,
  818. },
  819. },
  820. },
  821. vue = {
  822. formatter = {
  823. exe = "prettier",
  824. args = {},
  825. },
  826. linters = {},
  827. lsp = {
  828. provider = "vetur",
  829. setup = {
  830. cmd = {
  831. DATA_PATH .. "/lspinstall/vue/node_modules/.bin/vls",
  832. },
  833. on_attach = common_on_attach,
  834. capabilities = common_capabilities,
  835. },
  836. },
  837. },
  838. yaml = {
  839. formatter = {
  840. exe = "prettier",
  841. args = {},
  842. },
  843. linters = {},
  844. lsp = {
  845. provider = "yamlls",
  846. setup = {
  847. cmd = {
  848. DATA_PATH .. "/lspinstall/yaml/node_modules/.bin/yaml-language-server",
  849. "--stdio",
  850. },
  851. on_attach = common_on_attach,
  852. capabilities = common_capabilities,
  853. },
  854. },
  855. },
  856. zig = {
  857. formatter = {
  858. exe = "",
  859. args = {},
  860. stdin = false,
  861. },
  862. linters = {},
  863. lsp = {
  864. provider = "zls",
  865. setup = {
  866. cmd = {
  867. "zls",
  868. },
  869. on_attach = common_on_attach,
  870. capabilities = common_capabilities,
  871. },
  872. },
  873. },
  874. }
  875. require("core.which-key").config()
  876. require "core.status_colors"
  877. require("core.gitsigns").config()
  878. require("core.compe").config()
  879. require("core.dashboard").config()
  880. require("core.dap").config()
  881. require("core.terminal").config()
  882. require("core.telescope").config()
  883. require("core.treesitter").config()
  884. require("core.nvimtree").config()