Added rust_analyzer
This commit is contained in:
parent
479b68d90c
commit
24dffcb1bb
@ -207,7 +207,7 @@ local handlers = {
|
|||||||
|
|
||||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||||
-- map buffer local keybindings when the language server attaches
|
-- map buffer local keybindings when the language server attaches
|
||||||
local servers = { 'pyright', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman' }
|
local servers = { 'pyright', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman', 'rust_analyzer' }
|
||||||
for _, lsp in pairs(servers) do
|
for _, lsp in pairs(servers) do
|
||||||
require('lspconfig')[lsp].setup {
|
require('lspconfig')[lsp].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
@ -340,6 +340,8 @@ require("nvim-tree").setup({
|
|||||||
require'treesitter-context'.setup{}
|
require'treesitter-context'.setup{}
|
||||||
|
|
||||||
require("nvim-autopairs").setup {}
|
require("nvim-autopairs").setup {}
|
||||||
|
|
||||||
|
require'lspconfig'.rust_analyzer.setup {}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
" Added popout window to see diagnostic
|
" Added popout window to see diagnostic
|
||||||
|
@ -296,6 +296,7 @@ function install_kubernetes() {
|
|||||||
function install_rust() {
|
function install_rust() {
|
||||||
if command_exists rustc; then
|
if command_exists rustc; then
|
||||||
rustup update
|
rustup update
|
||||||
|
rustup component add rust-analyzer
|
||||||
else
|
else
|
||||||
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
|
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user