default-config.lua 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922
  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. fish = {
  284. formatter = {
  285. exe = "",
  286. args = {},
  287. },
  288. linters = {},
  289. lsp = {
  290. provider = "",
  291. setup = {
  292. on_attach = common_on_attach,
  293. capabilities = common_capabilities,
  294. },
  295. },
  296. },
  297. go = {
  298. formatter = {
  299. exe = "gofmt",
  300. args = {},
  301. stdin = true,
  302. },
  303. linters = {
  304. "golangcilint",
  305. "revive",
  306. },
  307. lsp = {
  308. provider = "gopls",
  309. setup = {
  310. cmd = {
  311. DATA_PATH .. "/lspinstall/go/gopls",
  312. },
  313. on_attach = common_on_attach,
  314. capabilities = common_capabilities,
  315. },
  316. },
  317. },
  318. graphql = {
  319. formatter = {
  320. exe = "",
  321. args = {},
  322. },
  323. linters = {},
  324. lsp = {
  325. provider = "graphql",
  326. setup = {
  327. cmd = {
  328. "graphql-lsp",
  329. "server",
  330. "-m",
  331. "stream",
  332. },
  333. on_attach = common_on_attach,
  334. capabilities = common_capabilities,
  335. },
  336. },
  337. },
  338. html = {
  339. formatter = {
  340. exe = "prettier",
  341. args = {},
  342. },
  343. linters = {
  344. "tidy",
  345. -- https://docs.errata.ai/vale/scoping#html
  346. "vale",
  347. },
  348. lsp = {
  349. provider = "html",
  350. setup = {
  351. cmd = {
  352. "node",
  353. DATA_PATH .. "/lspinstall/html/vscode-html/html-language-features/server/dist/node/htmlServerMain.js",
  354. "--stdio",
  355. },
  356. on_attach = common_on_attach,
  357. capabilities = common_capabilities,
  358. },
  359. },
  360. },
  361. java = {
  362. formatter = {
  363. exe = "prettier",
  364. args = { "--stdin-filepath", vim.api.nvim_buf_get_name(0) },
  365. },
  366. linters = {},
  367. lsp = {
  368. provider = "jdtls",
  369. setup = {
  370. cmd = { DATA_PATH .. "/lspinstall/java/jdtls.sh" },
  371. on_attach = common_on_attach,
  372. capabilities = common_capabilities,
  373. },
  374. },
  375. },
  376. json = {
  377. formatter = {
  378. exe = "python",
  379. args = { "-m", "json.tool" },
  380. stdin = true,
  381. },
  382. linters = {},
  383. lsp = {
  384. provider = "jsonls",
  385. setup = {
  386. cmd = {
  387. "node",
  388. DATA_PATH .. "/lspinstall/json/vscode-json/json-language-features/server/dist/node/jsonServerMain.js",
  389. "--stdio",
  390. },
  391. on_attach = common_on_attach,
  392. capabilities = common_capabilities,
  393. settings = {
  394. json = {
  395. schemas = schemas,
  396. -- = {
  397. -- {
  398. -- fileMatch = { "package.json" },
  399. -- url = "https://json.schemastore.org/package.json",
  400. -- },
  401. -- },
  402. },
  403. },
  404. commands = {
  405. Format = {
  406. function()
  407. vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 })
  408. end,
  409. },
  410. },
  411. },
  412. },
  413. },
  414. julia = {
  415. formatter = {
  416. exe = "",
  417. args = {},
  418. },
  419. linters = {},
  420. lsp = {
  421. provider = "julials",
  422. setup = {
  423. {
  424. "julia",
  425. "--startup-file=no",
  426. "--history-file=no",
  427. -- vim.fn.expand "~/.config/nvim/lua/lsp/julia/run.jl",
  428. CONFIG_PATH .. "/utils/julia/run.jl",
  429. },
  430. on_attach = common_on_attach,
  431. capabilities = common_capabilities,
  432. },
  433. },
  434. },
  435. kotlin = {
  436. formatter = {
  437. exe = "",
  438. args = {},
  439. },
  440. linters = {},
  441. lsp = {
  442. provider = "kotlin_language_server",
  443. setup = {
  444. cmd = {
  445. DATA_PATH .. "/lspinstall/kotlin/server/bin/kotlin-language-server",
  446. },
  447. on_attach = common_on_attach,
  448. root_dir = function(fname)
  449. local util = require "lspconfig/util"
  450. local root_files = {
  451. "settings.gradle", -- Gradle (multi-project)
  452. "settings.gradle.kts", -- Gradle (multi-project)
  453. "build.xml", -- Ant
  454. "pom.xml", -- Maven
  455. }
  456. local fallback_root_files = {
  457. "build.gradle", -- Gradle
  458. "build.gradle.kts", -- Gradle
  459. }
  460. return util.root_pattern(unpack(root_files))(fname) or util.root_pattern(unpack(fallback_root_files))(fname)
  461. end,
  462. },
  463. },
  464. },
  465. lua = {
  466. formatter = {
  467. exe = "stylua",
  468. args = {},
  469. },
  470. linters = { "luacheck" },
  471. lsp = {
  472. provider = "sumneko_lua",
  473. setup = {
  474. cmd = {
  475. DATA_PATH .. "/lspinstall/lua/sumneko-lua-language-server",
  476. "-E",
  477. DATA_PATH .. "/lspinstall/lua/main.lua",
  478. },
  479. on_attach = common_on_attach,
  480. settings = {
  481. Lua = {
  482. runtime = {
  483. -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
  484. version = "LuaJIT",
  485. -- Setup your lua path
  486. path = vim.split(package.path, ";"),
  487. },
  488. diagnostics = {
  489. -- Get the language server to recognize the `vim` global
  490. globals = { "vim", "lvim" },
  491. },
  492. workspace = {
  493. -- Make the server aware of Neovim runtime files
  494. library = {
  495. [vim.fn.expand "~/.local/share/lunarvim/lvim/lua"] = true,
  496. [vim.fn.expand "$VIMRUNTIME/lua"] = true,
  497. [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true,
  498. },
  499. maxPreload = 100000,
  500. preloadFileSize = 1000,
  501. },
  502. },
  503. },
  504. },
  505. },
  506. },
  507. php = {
  508. formatter = {
  509. exe = "phpcbf",
  510. args = { "--standard=PSR12", vim.api.nvim_buf_get_name(0) },
  511. },
  512. linters = {},
  513. lsp = {
  514. provider = "intelephense",
  515. setup = {
  516. cmd = {
  517. DATA_PATH .. "/lspinstall/php/node_modules/.bin/intelephense",
  518. "--stdio",
  519. },
  520. on_attach = common_on_attach,
  521. filetypes = { "php", "phtml" },
  522. settings = {
  523. intelephense = {
  524. environment = {
  525. phpVersion = "7.4",
  526. },
  527. },
  528. },
  529. },
  530. },
  531. },
  532. puppet = {
  533. formatter = {
  534. exe = "",
  535. args = {},
  536. },
  537. linters = {},
  538. lsp = {
  539. provider = "puppet",
  540. setup = {
  541. on_attach = require("lsp").common_on_attach,
  542. capabilities = require("lsp").common_capabilities(),
  543. },
  544. },
  545. },
  546. javascript = {
  547. -- @usage can be prettier or eslint
  548. formatter = {
  549. exe = "prettier",
  550. args = {},
  551. },
  552. linters = {
  553. "eslint",
  554. },
  555. lsp = {
  556. provider = "tsserver",
  557. setup = {
  558. cmd = {
  559. -- TODO:
  560. DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
  561. "--stdio",
  562. },
  563. on_attach = require("lsp").common_on_attach,
  564. capabilities = require("lsp").common_capabilities(),
  565. },
  566. },
  567. },
  568. javascriptreact = {
  569. -- @usage can be prettier or eslint
  570. formatter = {
  571. exe = "prettier",
  572. args = {},
  573. },
  574. linters = {
  575. "eslint",
  576. },
  577. lsp = {
  578. provider = "tsserver",
  579. setup = {
  580. cmd = {
  581. -- TODO:
  582. DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
  583. "--stdio",
  584. },
  585. on_attach = require("lsp").common_on_attach,
  586. capabilities = require("lsp").common_capabilities(),
  587. },
  588. },
  589. },
  590. python = {
  591. -- @usage can be flake8 or yapf
  592. formatter = {
  593. exe = "black",
  594. args = {},
  595. },
  596. linters = {
  597. "flake8",
  598. "pylint",
  599. "mypy",
  600. },
  601. lsp = {
  602. provider = "pyright",
  603. setup = {
  604. cmd = {
  605. DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver",
  606. "--stdio",
  607. },
  608. on_attach = common_on_attach,
  609. capabilities = common_capabilities,
  610. },
  611. },
  612. },
  613. -- R -e 'install.packages("formatR",repos = "http://cran.us.r-project.org")'
  614. -- R -e 'install.packages("readr",repos = "http://cran.us.r-project.org")'
  615. r = {
  616. formatter = {
  617. exe = "",
  618. args = {},
  619. },
  620. linters = {},
  621. lsp = {
  622. provider = "r_language_server",
  623. setup = {
  624. cmd = {
  625. "R",
  626. "--slave",
  627. "-e",
  628. "languageserver::run()",
  629. },
  630. on_attach = common_on_attach,
  631. capabilities = common_capabilities,
  632. },
  633. },
  634. },
  635. ruby = {
  636. formatter = {
  637. exe = "rufo",
  638. args = {},
  639. },
  640. linters = { "ruby" },
  641. lsp = {
  642. provider = "solargraph",
  643. setup = {
  644. cmd = {
  645. DATA_PATH .. "/lspinstall/ruby/solargraph/solargraph",
  646. "stdio",
  647. },
  648. on_attach = common_on_attach,
  649. capabilities = common_capabilities,
  650. },
  651. },
  652. },
  653. rust = {
  654. formatter = {
  655. exe = "",
  656. args = {},
  657. },
  658. linters = {},
  659. lsp = {
  660. provider = "rust_analyzer",
  661. setup = {
  662. cmd = {
  663. DATA_PATH .. "/lspinstall/rust/rust-analyzer",
  664. },
  665. on_attach = common_on_attach,
  666. capabilities = common_capabilities,
  667. },
  668. },
  669. },
  670. scala = {
  671. formatter = {
  672. exe = "",
  673. args = {},
  674. },
  675. linters = { "" },
  676. lsp = {
  677. provider = "metals",
  678. setup = {
  679. on_attach = common_on_attach,
  680. capabilities = common_capabilities,
  681. },
  682. },
  683. },
  684. sh = {
  685. -- @usage can be 'shfmt'
  686. formatter = {
  687. exe = "shfmt",
  688. args = {},
  689. },
  690. -- @usage can be 'shellcheck'
  691. linters = { "shellcheck" },
  692. lsp = {
  693. provider = "bashls",
  694. setup = {
  695. cmd = {
  696. DATA_PATH .. "/lspinstall/bash/node_modules/.bin/bash-language-server",
  697. "start",
  698. },
  699. on_attach = common_on_attach,
  700. capabilities = common_capabilities,
  701. },
  702. },
  703. },
  704. svelte = {
  705. formatter = {
  706. exe = "",
  707. args = {},
  708. },
  709. linters = {},
  710. lsp = {
  711. provider = "svelte",
  712. setup = {
  713. cmd = {
  714. DATA_PATH .. "/lspinstall/svelte/node_modules/.bin/svelteserver",
  715. "--stdio",
  716. },
  717. on_attach = common_on_attach,
  718. capabilities = common_capabilities,
  719. },
  720. },
  721. },
  722. swift = {
  723. formatter = {
  724. exe = "swiftformat",
  725. args = {},
  726. },
  727. linters = {},
  728. lsp = {
  729. provider = "sourcekit",
  730. setup = {
  731. cmd = {
  732. "xcrun",
  733. "sourcekit-lsp",
  734. },
  735. on_attach = common_on_attach,
  736. capabilities = common_capabilities,
  737. },
  738. },
  739. },
  740. tailwindcss = {
  741. active = false,
  742. filetypes = {
  743. "html",
  744. "css",
  745. "scss",
  746. "javascript",
  747. "javascriptreact",
  748. "typescript",
  749. "typescriptreact",
  750. },
  751. },
  752. terraform = {
  753. formatter = {
  754. exe = "",
  755. args = {},
  756. stdin = false,
  757. },
  758. linters = {},
  759. lsp = {
  760. provider = "terraformls",
  761. setup = {
  762. cmd = {
  763. DATA_PATH .. "/lspinstall/terraform/terraform-ls",
  764. "serve",
  765. },
  766. on_attach = common_on_attach,
  767. capabilities = common_capabilities,
  768. },
  769. },
  770. },
  771. tex = {
  772. formatter = {
  773. exe = "latexindent",
  774. args = {},
  775. stdin = false,
  776. },
  777. linters = { "chktex" },
  778. lsp = {
  779. provider = "texlab",
  780. setup = {
  781. cmd = { DATA_PATH .. "/lspinstall/latex/texlab" },
  782. on_attach = common_on_attach,
  783. capabilities = common_capabilities,
  784. },
  785. },
  786. },
  787. typescript = {
  788. -- @usage can be prettier or eslint
  789. formatter = {
  790. exe = "prettier",
  791. args = {},
  792. },
  793. linters = {
  794. "eslint",
  795. },
  796. lsp = {
  797. provider = "tsserver",
  798. setup = {
  799. cmd = {
  800. -- TODO:
  801. DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
  802. "--stdio",
  803. },
  804. on_attach = require("lsp").common_on_attach,
  805. capabilities = require("lsp").common_capabilities(),
  806. },
  807. },
  808. },
  809. typescriptreact = {
  810. -- @usage can be prettier or eslint
  811. formatter = {
  812. exe = "prettier",
  813. args = {},
  814. },
  815. linters = {
  816. "eslint",
  817. },
  818. lsp = {
  819. provider = "tsserver",
  820. setup = {
  821. cmd = {
  822. -- TODO:
  823. DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server",
  824. "--stdio",
  825. },
  826. on_attach = require("lsp").common_on_attach,
  827. capabilities = require("lsp").common_capabilities(),
  828. },
  829. },
  830. },
  831. vim = {
  832. formatter = {
  833. exe = "",
  834. args = {},
  835. },
  836. linters = { "" },
  837. lsp = {
  838. provider = "vimls",
  839. setup = {
  840. cmd = {
  841. DATA_PATH .. "/lspinstall/vim/node_modules/.bin/vim-language-server",
  842. "--stdio",
  843. },
  844. on_attach = common_on_attach,
  845. capabilities = common_capabilities,
  846. },
  847. },
  848. },
  849. vue = {
  850. formatter = {
  851. exe = "prettier",
  852. args = {},
  853. },
  854. linters = {},
  855. lsp = {
  856. provider = "vetur",
  857. setup = {
  858. cmd = {
  859. DATA_PATH .. "/lspinstall/vue/node_modules/.bin/vls",
  860. },
  861. on_attach = common_on_attach,
  862. capabilities = common_capabilities,
  863. },
  864. },
  865. },
  866. yaml = {
  867. formatter = {
  868. exe = "prettier",
  869. args = {},
  870. },
  871. linters = {},
  872. lsp = {
  873. provider = "yamlls",
  874. setup = {
  875. cmd = {
  876. DATA_PATH .. "/lspinstall/yaml/node_modules/.bin/yaml-language-server",
  877. "--stdio",
  878. },
  879. on_attach = common_on_attach,
  880. capabilities = common_capabilities,
  881. },
  882. },
  883. },
  884. zig = {
  885. formatter = {
  886. exe = "",
  887. args = {},
  888. stdin = false,
  889. },
  890. linters = {},
  891. lsp = {
  892. provider = "zls",
  893. setup = {
  894. cmd = {
  895. "zls",
  896. },
  897. on_attach = common_on_attach,
  898. capabilities = common_capabilities,
  899. },
  900. },
  901. },
  902. }
  903. require("core.which-key").config()
  904. require "core.status_colors"
  905. require("core.gitsigns").config()
  906. require("core.compe").config()
  907. require("core.dashboard").config()
  908. require("core.dap").config()
  909. require("core.terminal").config()
  910. require("core.telescope").config()
  911. require("core.treesitter").config()
  912. require("core.nvimtree").config()