aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/nimls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim_lsp/nimls.lua')
-rw-r--r--lua/nvim_lsp/nimls.lua45
1 files changed, 0 insertions, 45 deletions
diff --git a/lua/nvim_lsp/nimls.lua b/lua/nvim_lsp/nimls.lua
deleted file mode 100644
index 5e91c760..00000000
--- a/lua/nvim_lsp/nimls.lua
+++ /dev/null
@@ -1,45 +0,0 @@
-local configs = require 'nvim_lsp/configs'
-local util = require 'nvim_lsp/util'
-
-configs.nimls = {
- default_config = {
- cmd = {"nimlsp",};
- filetypes = {'nim'};
- root_dir = function(fname)
- return util.find_git_ancestor(fname) or vim.loop.os_homedir()
- end;
- };
- docs = {
- package_json = "https://raw.githubusercontent.com/pragmagic/vscode-nim/master/package.json";
- description = [[
-https://github.com/PMunch/nimlsp
-`nimlsp` can be installed via `:LspInstall nimls` or by yourself the `nimble` package manager:
-```sh
-nimble install nimlsp
-```
- ]];
- default_config = {
- root_dir = [[root_pattern(".git") or os_homedir]];
- };
- };
-}
-
-configs.nimls.install = function()
- local script = [[
- nimble install nimlsp
- ]]
-
- util.sh(script, vim.loop.os_homedir())
-end
-
-configs.nimls.install_info = function()
- local script = [[
- nimlsp --version
- ]]
-
- local status = pcall(vim.fn.system, script)
-
- return {
- is_installed = status and vim.v.shell_error == 0;
- }
-end