]> git.sthu.org Git - vimconf.git/commitdiff
mason: Add lua formatter stylua
authorStefan Huber <shuber@sthu.org>
Sat, 8 Mar 2025 11:59:32 +0000 (12:59 +0100)
committerStefan Huber <shuber@sthu.org>
Sat, 8 Mar 2025 11:59:32 +0000 (12:59 +0100)
plugins-full.vim.example

index 800fc7687fa5c991c5336d2940b9b63d498b19bd..07b473c2f95529023abd6712555c10dcb14dde91 100644 (file)
@@ -244,7 +244,6 @@ EOF
                     }
                 }
             })
-            require("mason-lspconfig").setup()
             require("mason-lspconfig").setup({
                 ensure_installed = {
                     -- Latest before switching to Java 18
@@ -295,6 +294,7 @@ EOF
                 json = require('formatter.filetypes.json').jq,
                 python = { require("formatter.filetypes.python").autopep8 },
                 xml = { require("formatter.filetypes.xml").xmllint },
+                lua = { require("formatter.filetypes.lua").stylua },
 
                 -- Use the special "*" filetype for defining formatter configurations on
                 -- any filetype