Skip to content

Commit 7d6310f

Browse files
authored
fix(neovim): remove unnecessary dependencies about rust and exclude .direnv from rust-analyzer (#24)
1 parent 0f431e0 commit 7d6310f

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

neovim/lazy-lock.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"nvim-cmp": { "branch": "main", "commit": "d97d85e01339f01b842e6ec1502f639b080cb0fc" },
3636
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
3737
"nvim-comment": { "branch": "main", "commit": "e9ac16ab056695cad6461173693069ec070d2b23" },
38-
"nvim-dap": { "branch": "master", "commit": "5860c7c501eb428d3137ee22c522828d20cca0b3" },
3938
"nvim-lspconfig": { "branch": "feat(lsp)/smarter-typescript-project-detection", "commit": "386c9a3937510c9e4521720a57ae739b56a98f52" },
4039
"nvim-navic": { "branch": "master", "commit": "7d914a39a1ef8f4e22c2c4381abeef7c556f5a13" },
4140
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
@@ -46,7 +45,6 @@
4645
"presence.nvim": { "branch": "main", "commit": "1c0585004470b62262288ad821afc2138a2a6b26" },
4746
"remote-sshfs.nvim": { "branch": "main", "commit": "45502b3892774811153aeab5f7f9b0033c82005c" },
4847
"rust-tools.nvim": { "branch": "master", "commit": "676187908a1ce35ffcd727c654ed68d851299d3e" },
49-
"rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" },
5048
"rustaceanvim": { "branch": "master", "commit": "047f9c9d8cd2861745eb9de6c1570ee0875aa795" },
5149
"satellite.nvim": { "branch": "main", "commit": "7c2e5a4064abb0066a0bf157e7a137f1bcdeace2" },
5250
"schemastore.nvim": { "branch": "main", "commit": "5f2299987a1937612c910f00db39156bab6a6b35" },

neovim/lua/plugin-settings/lsp.lua

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@ return {
33
{
44
'mrcjkb/rustaceanvim',
55
version = '^4',
6-
lazy = true,
7-
ft = { 'rust' },
8-
dependencies = {
9-
'rust-lang/rust.vim',
10-
'neovim/nvim-lspconfig',
11-
'mfussenegger/nvim-dap',
12-
},
6+
lazy = false,
137
init = function()
148
-- Rust
159
vim.g.rustaceanvim = {
@@ -28,6 +22,9 @@ return {
2822
end,
2923
default_settings = {
3024
['rust-analyzer'] = {
25+
files = {
26+
excludeDirs = { '.direnv' },
27+
},
3128
check = {
3229
command = 'clippy',
3330
},

0 commit comments

Comments
 (0)