important changes

This commit is contained in:
Christoph J. Scherr 2024-02-29 20:10:26 +01:00
parent e8e8b3d9ac
commit fd46b2a6b6
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
3 changed files with 53 additions and 2 deletions

View File

@ -67,7 +67,7 @@ opt.foldlevel = 10 -- start with all folds open
-- Editor UI -- Editor UI
-- === -- ===
vim.o.guifont = "FiraCode Nerd Font:h22" vim.o.guifont = "FiraCode Nerd Font:h15"
opt.termguicolors = true opt.termguicolors = true
opt.shortmess = "xsTOInfFitloCaAs" opt.shortmess = "xsTOInfFitloCaAs"
opt.showmode = true -- Show mode in cmd window opt.showmode = true -- Show mode in cmd window

View File

@ -821,7 +821,17 @@ local plugins = {
}, },
-- LSP configuration -- LSP configuration
server = { 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 configuration
dap = { dap = {
@ -840,6 +850,42 @@ local plugins = {
require("nvim-dap-virtual-text").setup() require("nvim-dap-virtual-text").setup()
end, 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" },
} }
return plugins return plugins

View File

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