[LSP] Add rust LS
This commit is contained in:
		| @@ -14,8 +14,8 @@ return { | ||||
|         -- import cmp-nvim-lsp plugin | ||||
|         local cmp_nvim_lsp = require("cmp_nvim_lsp") | ||||
|  | ||||
|         local capabilities = require('lsp-options').capabilities | ||||
|         local on_attach = require('lsp-options').on_attach | ||||
|         local capabilities = require("lsp-options").capabilities | ||||
|         local on_attach = require("lsp-options").on_attach | ||||
|  | ||||
|         -- Change the Diagnostic symbols in the sign column (gutter) | ||||
|         local signs = { Error = " ", Warn = " ", Hint = "", Info = " " } | ||||
| @@ -46,6 +46,19 @@ return { | ||||
|             on_attach = on_attach, | ||||
|         }) | ||||
|  | ||||
|         -- ┌                                               ┐ | ||||
|         -- │                     Rust                      │ | ||||
|         -- └                                               ┘ | ||||
|         vim.lsp.config("rust_analyzer", { | ||||
|             settings = { | ||||
|                 ["rust-analyzer"] = { | ||||
|                     diagnostics = { | ||||
|                         enable = false, | ||||
|                     }, | ||||
|                 }, | ||||
|             }, | ||||
|         }) | ||||
|  | ||||
|         -- ┌                                               ┐ | ||||
|         -- │                HTML, CSS, JSON                │ | ||||
|         -- └                                               ┘ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user