Add elixir language server.
parent
98aa5d6177
commit
6b1d507283
|
@ -32,6 +32,7 @@ let
|
|||
plugin = (pkgs.vimPlugins.nvim-treesitter.withPlugins (
|
||||
ps: with ps; [
|
||||
bash
|
||||
elixir
|
||||
lua
|
||||
nix
|
||||
python
|
||||
|
@ -68,6 +69,7 @@ in
|
|||
|
||||
imports = [
|
||||
./lang/bash.nix
|
||||
./lang/elixir.nix
|
||||
./lang/lean.nix
|
||||
./lang/lua.nix
|
||||
./lang/nix.nix
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim = {
|
||||
nvim-lspconfig = ''
|
||||
require('init.lsp').setup(require('lspconfig').elixirls) {
|
||||
-- Keep command relative. Compatibility of `elixir-ls` depends tightly
|
||||
-- on -- the version of elixir being used so this allows local (i.e.
|
||||
-- within nix shells) versions of `elixir-ls` to override the version
|
||||
-- specified -- in `extraPackages`.
|
||||
cmd = { 'elixir-ls' },
|
||||
}
|
||||
'';
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
elixir-ls
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue