Browse Source

Add support for bicep (#1451)

Craig Anderson 3 years ago
parent
commit
f82ffdca1f
3 changed files with 18 additions and 0 deletions
  1. 3 0
      ftdetect/bicep.lua
  2. 1 0
      ftplugin/bicep.lua
  3. 14 0
      lua/config/defaults.lua

+ 3 - 0
ftdetect/bicep.lua

@@ -0,0 +1,3 @@
+vim.cmd [[
+ au BufRead,BufNewFile *.bicep set filetype=bicep
+]]

+ 1 - 0
ftplugin/bicep.lua

@@ -0,0 +1 @@
+require("lsp").setup "bicep"

+ 14 - 0
lua/config/defaults.lua

@@ -134,6 +134,20 @@ lvim.lang = {
       },
     },
   },
+  bicep = {
+    formatters = {},
+    linters = {},
+    lsp = {
+      provider = "bicep",
+      setup = {
+        cmd = {
+          "dotnet",
+          DATA_PATH .. "/lspinstall/bicep/Bicep.LangServer.dll",
+        },
+        filetypes = { "bicep" },
+      },
+    },
+  },
   c = {
     formatters = {
       -- {