This commit is contained in:
Christoph J. Scherr 2024-03-01 13:54:26 +01:00
commit 4432751c40
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
3 changed files with 55 additions and 1 deletions

View File

@ -208,6 +208,9 @@ M.telescope = {
["<localleader>fo"] = { "<cmd> Telescope oldfiles <cr>", "Find oldfiles" },
["<localleader>fz"] = { "<cmd> Telescope current_buffer_fuzzy_find <cr>", "Find in current buffer" },
-- directory
["<localleader>cd"] = { "<cmd> Telescope zoxide list<cr>", "telescope zoxide cd" },
-- git
["<localleader>cm"] = { "<cmd> Telescope git_commits <cr>", "Git commits" },
["<localleader>gt"] = { "<cmd> Telescope git_status <cr>", "Git status" },

View File

@ -821,7 +821,17 @@ local plugins = {
},
-- LSP configuration
server = {
auto_attach = false,
on_attach = function(client, bufnr)
-- you can also put keymaps in here
end,
settings = {
-- rust-analyzer language server configuration
["rust-analyzer"] = {
cargo = {
features = "all",
},
},
},
},
-- DAP configuration
dap = {
@ -840,6 +850,42 @@ local plugins = {
require("nvim-dap-virtual-text").setup()
end,
},
{
"jvgrootveld/telescope-zoxide",
dependencies = "nvim-telescope/telescope.nvim",
config = function()
-- Useful for easily creating commands
local z_utils = require "telescope._extensions.zoxide.utils"
require("telescope").setup {
-- (other Telescope configuration...)
extensions = {
zoxide = {
prompt_title = "[ Walking on the shoulders of TJ ]",
mappings = {
default = {
after_action = function(selection)
print("Update to (" .. selection.z_score .. ") " .. selection.path)
end,
},
["<C-s>"] = {
before_action = function(selection)
print "before C-s"
end,
action = function(selection)
vim.cmd.edit(selection.path)
end,
},
-- Opens the selected entry in a new split
["<C-q>"] = { action = z_utils.create_basic_command "split" },
},
},
},
}
require("telescope").load_extension "zoxide"
end,
},
{ "nanotee/zoxide.vim", lazy = false, enabled = false },
}
return plugins

View File

@ -283,3 +283,8 @@ erstmal
warmweißer
WG
SilverBullet
Forgejo
additional
scriptable
Autcrate
rustaceans