From a190306e477a95b7dd91e375c0cf82e0b72b1cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=C3=BAc=20L=C3=AA=20Kh=E1=BA=AFc?= Date: Wed, 18 Aug 2021 15:44:10 +0100 Subject: [Feature]: LSP Fortran (#1342) * null-ls needs to be pinned as well * unpin null-ls * lsp: fortran Co-authored-by: Abouzar Parvan Co-authored-by: christianchiarulli --- ftplugin/fortran.lua | 1 + lua/default-config.lua | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 ftplugin/fortran.lua diff --git a/ftplugin/fortran.lua b/ftplugin/fortran.lua new file mode 100644 index 00000000..36f4f484 --- /dev/null +++ b/ftplugin/fortran.lua @@ -0,0 +1 @@ +require("lsp").setup "fortran" diff --git a/lua/default-config.lua b/lua/default-config.lua index f381b0b6..0f9e6daa 100644 --- a/lua/default-config.lua +++ b/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 = { -- { -- cgit v1.2.3