scorpio il y a 1 an
Parent
commit
ea003d9fde
2 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 1 1
      lua/plugin-config/prettier.lua
  2. 4 0
      lua/plugins.lua

+ 1 - 1
lua/plugin-config/prettier.lua

@@ -3,7 +3,7 @@ local prettier = require("prettier")
 prettier.setup({
     bin = 'prettier', -- or `'prettierd'` (v0.23.3+)
     filetypes = {"css", "graphql", "html", "javascript", "javascriptreact", "json", "less", "markdown", "scss",
-                 "typescript", "typescriptreact", "yaml", "vue"},
+                 "typescript", "typescriptreact", "yaml", "vue", "lua"},
     cli_options = {
         arrow_parens = "always",
         bracket_spacing = true,

+ 4 - 0
lua/plugins.lua

@@ -92,6 +92,10 @@ packer.startup({
         -- 代码格式化
         use('jose-elias-alvarez/null-ls.nvim')
         use('MunifTanjim/prettier.nvim')
+       -- 快捷键提示
+        -- use('folke/whick-key.nvim')
+        -- Lua
+          -- refer to the configuration section below
         -- 补全引擎
         -- use("hrsh7th/nvim-cmp")
         -- snippet 引擎