add rust_analyzer search optionj
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user