diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-03 15:55:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-03 15:55:59 -0700 |
| commit | e1160be89ae6a3ece4664c8e32a82b8637f4b177 (patch) | |
| tree | 77d533dc9606ca7e9b30d1a96baebf3de325d2a8 /lua/lspconfig/r_language_server.lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| parent | ci: lint and format with stylua (diff) | |
| download | nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.gz nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.bz2 nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.lz nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.xz nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.zst nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.zip | |
Merge pull request #1029 from mjlbach/ci/format_with_stylua
ci: lint and format with stylua
Diffstat (limited to 'lua/lspconfig/r_language_server.lua')
| -rw-r--r-- | lua/lspconfig/r_language_server.lua | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lua/lspconfig/r_language_server.lua b/lua/lspconfig/r_language_server.lua index d75da11f..32be96b9 100644 --- a/lua/lspconfig/r_language_server.lua +++ b/lua/lspconfig/r_language_server.lua @@ -1,17 +1,17 @@ -local util = require 'lspconfig/util' -local configs = require 'lspconfig/configs' +local util = require "lspconfig/util" +local configs = require "lspconfig/configs" configs.r_language_server = { default_config = { - cmd = {"R", "--slave", "-e", "languageserver::run()"}; - filetypes = {"r", "rmd"}; + cmd = { "R", "--slave", "-e", "languageserver::run()" }, + filetypes = { "r", "rmd" }, root_dir = function(fname) return util.find_git_ancestor(fname) or vim.loop.os_homedir() - end; - log_level = vim.lsp.protocol.MessageType.Warning; - }; + end, + log_level = vim.lsp.protocol.MessageType.Warning, + }, docs = { - package_json = "https://raw.githubusercontent.com/REditorSupport/vscode-r-lsp/master/package.json"; + package_json = "https://raw.githubusercontent.com/REditorSupport/vscode-r-lsp/master/package.json", description = [[ [languageserver](https://github.com/REditorSupport/languageserver) is an implementation of the Microsoft's Language Server Protocol for the R @@ -22,9 +22,9 @@ configs.r_language_server = { ```R install.packages("languageserver") ``` - ]]; + ]], default_config = { - root_dir = [[root_pattern(".git") or os_homedir]] - }; - }; + root_dir = [[root_pattern(".git") or os_homedir]], + }, + }, } |
