Skip to content

Commit

Permalink
fix: make rust analyzer could auto start
Browse files Browse the repository at this point in the history
patch refers to:
simrat39/rust-tools.nvim#397 (comment)

Signed-off-by: cailue <[email protected]>
  • Loading branch information
ClSlaid committed Aug 18, 2023
1 parent 10e2e49 commit cd0cfc7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lua/modules/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ completion["neovim/nvim-lspconfig"] = {
config = require("completion.lsp"),
dependencies = {
{ "williamboman/mason.nvim" },
{ "williamboman/mason-lspconfig.nvim" },
{
"Jint-lzxy/lsp_signature.nvim",
config = require("completion.lsp-signature"),
},
},
}

completion["williamboman/mason-lspconfig.nvim"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
dependencies = { "neovim/nvim-lspconfig" },
}

completion["nvimdev/lspsaga.nvim"] = {
lazy = true,
event = "LspAttach",
Expand Down
3 changes: 2 additions & 1 deletion lua/modules/plugins/lang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ lang["fatih/vim-go"] = {
}
lang["simrat39/rust-tools.nvim"] = {
lazy = true,
ft = "rust",
ft = { "rust", "rs" },
event = { "BufReadPost *.rs" },
config = require("lang.rust-tools"),
dependencies = { "nvim-lua/plenary.nvim" },
}
Expand Down

0 comments on commit cd0cfc7

Please sign in to comment.