add rust_analyzer search optionj

This commit is contained in:
2026-04-01 20:29:46 +09:00
parent 1803a93059
commit 9f5448bbc5
3 changed files with 26 additions and 1 deletions

View File

@@ -26,6 +26,21 @@ return {
cmd = { vim.fn.stdpath("config") .. "/shell/clangd-direnv.sh" }
})
vim.lsp.config("rust_analyzer", {
capabilities = capabilities,
settings = {
["rust-analyzer"] = {
workspace = {
symbol = {
search = {
kind = "all_symbols",
}
}
}
}
}
})
vim.lsp.enable("hls")
end,
}

View File

@@ -1,3 +1,5 @@
local builtin = require('telescope.builtin')
return {
'nvim-telescope/telescope.nvim',
version = '*',
@@ -6,6 +8,13 @@ return {
-- optional but recommended
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
},
opts = {
pickers = {
lsp_workspace_symbols = {
theme = "dropdown",
}
}
},
keys = {
{ "<leader>ff", "<Cmd>Telescope find_files<CR>", desc = "Find files" },
{ "<leader>fg", "<Cmd>Telescope live_grep<CR>", desc = "Live grep" },