Procházet zdrojové kódy

[Feature]: LSP Fortran (#1342)

* null-ls needs to be pinned as well

* unpin null-ls

* lsp: fortran

Co-authored-by: Abouzar Parvan <abzcoding@users.noreply.github.com>
Co-authored-by: christianchiarulli <chrisatmachine@gmail.com>
Phúc Lê Khắc před 3 roky
rodič
revize
a190306e47
2 změnil soubory, kde provedl 16 přidání a 0 odebrání
  1. 1 0
      ftplugin/fortran.lua
  2. 15 0
      lua/default-config.lua

+ 1 - 0
ftplugin/fortran.lua

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

+ 15 - 0
lua/default-config.lua

@@ -486,6 +486,21 @@ lvim.lang = {
       },
     },
   },
+  fortran = {
+    formatters = {},
+    linters = {},
+    lsp = {
+      provider = "fortls",
+      setup = {
+        cmd = {
+          DATA_PATH .. "/lspinstall/fortran/venv/bin/fortls",
+        },
+        on_attach = common_on_attach,
+        on_init = common_on_init,
+        capabilities = common_capabilities,
+      },
+    },
+  },
   go = {
     formatters = {
       -- {