this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvim: fix efm-langserver config

+29 -9
+29 -9
nvim/lua/plugins/lsp.lua
··· 56 56 root_dir = not_deno, 57 57 single_file_support = false, 58 58 settings = { 59 - javascript = { format = { enable = true } }, 60 - typescript = { format = { enable = true } }, 59 + -- Formatting handled by efm 60 + javascript = { format = { enable = false } }, 61 + typescript = { format = { enable = false } }, 61 62 } 62 63 } 63 64 LangServers.eslint = { ··· 89 90 json = { 90 91 schemas = require("schemastore").json.schemas(), 91 92 validate = { enable = true }, 93 + format = { enable = false }, 92 94 }, 93 - }, 95 + } 94 96 } 95 97 LangServers.bashls = { 96 98 filetypes = { "sh", "bash", "zsh" }, 97 99 } 98 100 LangServers.efm = { 99 - filetypes = { "sh", "bash", "zsh" }, 101 + filetypes = { "sh", "bash", "zsh", "javascript", "typescript", "javascriptreact", "typescriptreact", "json", "css", "scss", "html", "markdown" }, 102 + init_options = { 103 + documentFormatting = true, 104 + documentRangeFormatting = true, 105 + }, 100 106 settings = { 101 107 rootMarkers = { ".git/" }, 102 - languages = { 103 - sh = { { formatCommand = "shfmt -ci", formatStdin = true } }, 104 - bash = { { formatCommand = "shfmt -ci", formatStdin = true } }, 105 - zsh = { { formatCommand = "shfmt -ci", formatStdin = true } }, 106 - }, 108 + languages = (function() 109 + local prettier_config = { formatCommand = "prettier --stdin-filepath ${INPUT}", formatStdin = true } 110 + local shfmt_config = { formatCommand = "shfmt -ci", formatStdin = true } 111 + 112 + return { 113 + sh = { shfmt_config }, 114 + bash = { shfmt_config }, 115 + zsh = { shfmt_config }, 116 + javascript = { prettier_config }, 117 + typescript = { prettier_config }, 118 + javascriptreact = { prettier_config }, 119 + typescriptreact = { prettier_config }, 120 + json = { prettier_config }, 121 + css = { prettier_config }, 122 + scss = { prettier_config }, 123 + html = { prettier_config }, 124 + markdown = { prettier_config }, 125 + } 126 + end)(), 107 127 }, 108 128 } 109 129 LangServers.gopls = {