mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 11:14:42 +02:00
poc with local prettier working
This commit is contained in:
parent
4fad35a7e1
commit
eceb656b4b
7 changed files with 86 additions and 42 deletions
|
@ -1,3 +1,19 @@
|
|||
O.formatters.filetype["lua"] = {
|
||||
-- prettier
|
||||
function()
|
||||
return {
|
||||
exe = "stylua",
|
||||
-- TODO: append to this for args don't overwrite
|
||||
args = {},
|
||||
stdin = false,
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
require("formatter.config").set_defaults {
|
||||
logging = false,
|
||||
filetype = O.formatters.filetype,
|
||||
}
|
||||
if not require("lv-utils").check_lsp_client_active "sumneko_lua" then
|
||||
-- https://github.com/sumneko/lua-language-server/wiki/Build-and-Run-(Standalone)
|
||||
local sumneko_root_path = DATA_PATH .. "/lspinstall/lua"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue