summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/rust-ls.lua
diff options
context:
space:
mode:
authoraktersnurra <grydholm@kth.se>2021-04-19 21:45:03 +0200
committeraktersnurra <grydholm@kth.se>2021-04-19 21:45:03 +0200
commit69347ce034f8966579e72dc969ec808363fdfaeb (patch)
tree3be9e1b1547a0871826b6112a0d88406572b02ba /.config/nvim/lua/lsp/rust-ls.lua
parent23b895222a16925d39d04d45dedbedec9db0c752 (diff)
Add missing files of nvim conf
Diffstat (limited to '.config/nvim/lua/lsp/rust-ls.lua')
-rw-r--r--.config/nvim/lua/lsp/rust-ls.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/nvim/lua/lsp/rust-ls.lua b/.config/nvim/lua/lsp/rust-ls.lua
new file mode 100644
index 0000000..896c693
--- /dev/null
+++ b/.config/nvim/lua/lsp/rust-ls.lua
@@ -0,0 +1,4 @@
+require'lspconfig'.rust_analyzer.setup{
+ cmd = {DATA_PATH .. "/lspinstall/rust/rust-analyzer"},
+ on_attach = require'lsp'.common_on_attach
+}