aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim_lsp.lua1
-rw-r--r--lua/nvim_lsp/fortls.lua29
2 files changed, 30 insertions, 0 deletions
diff --git a/lua/nvim_lsp.lua b/lua/nvim_lsp.lua
index 1d5c35e0..70748e07 100644
--- a/lua/nvim_lsp.lua
+++ b/lua/nvim_lsp.lua
@@ -6,6 +6,7 @@ require 'nvim_lsp/clangd'
require 'nvim_lsp/cssls'
require 'nvim_lsp/elmls'
require 'nvim_lsp/flow'
+require 'nvim_lsp/fortls'
require 'nvim_lsp/gopls'
require 'nvim_lsp/hie'
require 'nvim_lsp/pyls'
diff --git a/lua/nvim_lsp/fortls.lua b/lua/nvim_lsp/fortls.lua
new file mode 100644
index 00000000..630034ed
--- /dev/null
+++ b/lua/nvim_lsp/fortls.lua
@@ -0,0 +1,29 @@
+local skeleton = require 'nvim_lsp/skeleton'
+local util = require 'nvim_lsp/util'
+local lsp = vim.lsp
+
+skeleton.fortls = {
+ default_config = {
+ cmd = {"fortls"};
+ filetypes = {"fortran"};
+ root_dir = util.root_pattern(".fortls");
+ log_level = lsp.protocol.MessageType.Warning;
+ settings = {
+ nthreads = 1,
+ };
+ };
+ -- on_new_config = function(new_config) end;
+ -- on_attach = function(client, bufnr) end;
+ docs = {
+ description = [[
+https://github.com/hansec/fortran-language-server
+
+Fortran Language Server for the Language Server Protocol
+ ]];
+ default_config = {
+ root_dir = [[root_pattern(".fortls")]];
+ };
+ };
+};
+
+-- vim:et ts=2 sw=2