[nvim] feat: add rust_analyzer LSP
This commit is contained in:
parent
c2d120ecf4
commit
e87b863640
@ -60,6 +60,7 @@ capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities)
|
|||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
"clangd",
|
"clangd",
|
||||||
|
"rust_analyzer",
|
||||||
"sumneko_lua",
|
"sumneko_lua",
|
||||||
"texlab",
|
"texlab",
|
||||||
}
|
}
|
||||||
|
16
.config/nvim/lua/plugin/lsp/rust_analyzer.lua
Normal file
16
.config/nvim/lua/plugin/lsp/rust_analyzer.lua
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Wednesday Nov. 30, 2022 16:35:43 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : neovim lsp config file for rust_analyzer
|
||||||
|
|
||||||
|
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
local rust_analayzer_binary = _G.lsp_root_dir .. "rust_analyzer/rust_analyzer"
|
||||||
|
|
||||||
|
M.setup = function(opts)
|
||||||
|
opts.settings = {}
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
|
Reference in New Issue
Block a user