setup rust
This commit is contained in:
@@ -1,28 +1,35 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
'mason-org/mason.nvim',
|
'mason-org/mason.nvim',
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'mason-org/mason-lspconfig.nvim',
|
'mason-org/mason-lspconfig.nvim',
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
'lua_ls',
|
'lua_ls',
|
||||||
'clangd',
|
'clangd',
|
||||||
'harper_ls',
|
'harper_ls',
|
||||||
},
|
},
|
||||||
automatic_enable = {
|
automatic_enable = {
|
||||||
exclude = {
|
exclude = {
|
||||||
'harper_ls',
|
'harper_ls',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
config = function()
|
config = function()
|
||||||
-- local lspconfig = require 'lspconfig'
|
-- local lspconfig = require 'lspconfig'
|
||||||
vim.lsp.config('harper_ls', { filetypes = { 'markdown' }})
|
vim.lsp.config('harper_ls', { filetypes = { 'markdown' }})
|
||||||
end,
|
vim.lsp.config('rust_analyser', { filetypes = { 'rust' }})
|
||||||
},
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"j-hui/fidget.nvim",
|
||||||
|
opts = {
|
||||||
|
-- options
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user