diff options
-rw-r--r-- | dotfiles/vim-dev.lua | 9 | ||||
-rw-r--r-- | usecases/desktop/development.nix | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/dotfiles/vim-dev.lua b/dotfiles/vim-dev.lua index ae74e91..126b615 100644 --- a/dotfiles/vim-dev.lua +++ b/dotfiles/vim-dev.lua | |||
@@ -57,3 +57,12 @@ require("rust-tools").setup { | |||
57 | on_attach = on_attach, | 57 | on_attach = on_attach, |
58 | } | 58 | } |
59 | } | 59 | } |
60 | |||
61 | require("nlua.lsp.nvim").setup(require('lspconfig'), { | ||
62 | cmd = { | ||
63 | string.format("%s/bin/lua-language-server", vim.g.sumneko_lua_base_path), | ||
64 | "-E", | ||
65 | string.format("%s/extras/main.lua", vim.g.sumneko_lua_base_path), | ||
66 | }, | ||
67 | on_attach = on_attach, | ||
68 | }) | ||
diff --git a/usecases/desktop/development.nix b/usecases/desktop/development.nix index 6dfd695..ae61d33 100644 --- a/usecases/desktop/development.nix +++ b/usecases/desktop/development.nix | |||
@@ -65,6 +65,7 @@ in | |||
65 | vim = { | 65 | vim = { |
66 | extraPlugins = with vimPlugins; [ | 66 | extraPlugins = with vimPlugins; [ |
67 | lsp_signature-nvim | 67 | lsp_signature-nvim |
68 | nlua-nvim | ||
68 | nvim-lspconfig | 69 | nvim-lspconfig |
69 | rust-tools-nvim | 70 | rust-tools-nvim |
70 | vim-grammarous | 71 | vim-grammarous |
@@ -72,13 +73,13 @@ in | |||
72 | 73 | ||
73 | variables = { | 74 | variables = { |
74 | rust_analyzer_path = "${rust-analyzer-unwrapped}/bin/rust-analyzer"; | 75 | rust_analyzer_path = "${rust-analyzer-unwrapped}/bin/rust-analyzer"; |
76 | sumneko_lua_base_path = "${sumneko-lua-language-server}"; | ||
75 | }; | 77 | }; |
76 | 78 | ||
77 | lsp = { | 79 | lsp = { |
78 | clangd.cmd = [ "${clang-tools}/bin/clangd" "--resource-dir=${clang}/resource-root" ]; | 80 | clangd.cmd = [ "${clang-tools}/bin/clangd" "--resource-dir=${clang}/resource-root" ]; |
79 | elixirls.cmd = [ "${elixir_ls}/bin/elixir-ls" ]; | 81 | elixirls.cmd = [ "${elixir_ls}/bin/elixir-ls" ]; |
80 | pylsp.cmd = [ "${python-lsp-server}/bin/pylsp" ]; | 82 | pylsp.cmd = [ "${python-lsp-server}/bin/pylsp" ]; |
81 | sumneko_lua.cmd = [ "${sumneko-lua-language-server}/bin/lua-language-server" ]; | ||
82 | }; | 83 | }; |
83 | 84 | ||
84 | luaConfig = with lib; let | 85 | luaConfig = with lib; let |