Skip to content

Commit

Permalink
lsp: remove lsp installer
Browse files Browse the repository at this point in the history
It is a bad idea to manage lsp exeutable by an editor plugin. In linux,
we have more reliable package manager. I don't want a python pip like
plugin. Besides, this project is no more under maintained as the
upstream start working a new alternative: meson.nvim. It's hard to trust
a upstream that abandon and rename themselves three times.

Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Aug 10, 2022
1 parent 6b5e011 commit 564b780
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 31 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ Please read [**NVIM GUIDANCE**](https://avimitin.github.io/nvim).
|----------------------------------------------------|
| ![cmp-cmdline](./docs/images/nvim-cmp-cmdline.png) |

| Easy install language server |
|--------------------------------------------------------------------------------------------------------------------|
| ![lspserver](https://user-images.githubusercontent.com/6705160/150685720-782e33ba-172c-44b6-8558-fb4e98495294.png) |

| Inline diagnostic analytics |
|-----------------------------|
| ![lsp-line](./docs/images/inline.png) |
Expand Down
8 changes: 4 additions & 4 deletions docs/src/en_us/workflows/lspconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ local custom = {
return custom
```

You can use command `:LspInstall <Language>` to install new lspserver.
This command is provided by [nvim-lsp-installer](https://github.com/williamboman/nvim-lsp-installer).
And you can use the `:LspInstallInfo` to use a panel to manage the servers.
Install the server by your system package manager, and add the executable name
into the custom.lua file.

> * Rust server is also automatically installed and set up by rust-tools.nvim.
> * Rust server is automatically installed and set up by rust-tools.nvim.
> Don't add the rust-analyzer executable here.
> For detail please read [Rust.md(WIP)](../plugins/rust.md)
> * Lua server is installed and pre-configured by default, you don't need to configured it too.
Expand Down
16 changes: 0 additions & 16 deletions lua/plugins/coding/config/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,6 @@ for type, icon in pairs(signs) do
})
end

-- [[ =================================================================================
-- LSP SETUP MAIN LOGIC
-- =================================================================================]]

require("nvim-lsp-installer").setup({
-- only ensure Lua language server is installed
automatic_installation = true,
ui = {
icons = {
server_installed = "",
server_pending = "",
server_uninstalled = "",
},
},
})

-- Preconfigured language server that will be **automatically** installed.
--
-- WARNING: rust-analyzer is set up by plugin "rust-tools.nvim", *DONT*
Expand Down
7 changes: 0 additions & 7 deletions lua/plugins/coding/repos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ local repos = {
after = "nvim-treesitter",
},

-- automatically download and manage lsp server
{
"williamboman/nvim-lsp-installer",
-- setup by lspconfig in lspconfig_cfg.lua file
module = "nvim-lsp-installer",
},

-- manage the lsp server
{
"neovim/nvim-lspconfig",
Expand Down

0 comments on commit 564b780

Please sign in to comment.