From 354c1b6461eca27599b5256e60d7f09eff4de507 Mon Sep 17 00:00:00 2001 From: Jannik Buhr Date: Mon, 9 Dec 2024 13:25:45 +0100 Subject: [PATCH] clenaup --- lua/config/keymap.lua | 6 ++++-- lua/plugins/common.lua | 4 ++-- lua/plugins/completion.lua | 12 ++++++------ lua/plugins/ui.lua | 13 ++++++++----- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/lua/config/keymap.lua b/lua/config/keymap.lua index 3c1911b..495eaa4 100644 --- a/lua/config/keymap.lua +++ b/lua/config/keymap.lua @@ -321,7 +321,7 @@ local function toggle_conceal() end end - +-- eval "$(tmux showenv -s DISPLAY)" -- normal mode with wk.add({ { @@ -335,6 +335,8 @@ wk.add({ { "d", group = "[d]ebug" }, { "dt", group = "[t]est" }, { "e", group = "[e]dit" }, + { "e", group = "[t]mux" }, + { "fd", [[eval "$(tmux showenv -s DISPLAY)"]], desc = "[d]isplay fix" }, { "f", group = "[f]ind (telescope)" }, { "f", "Telescope buffers", desc = "[ ] buffers" }, { "fM", "Telescope man_pages", desc = "[M]an pages" }, @@ -363,7 +365,7 @@ wk.add({ { "gws", ":lua require('telescope').extensions.git_worktree.git_worktrees()", desc = "worktree switch" }, { "h", group = "[h]elp / [h]ide / debug" }, { "hc", group = "[c]onceal" }, - { "hc", toggle_conceal, desc = "[c]onceal toggle" }, + { "hc", toggle_conceal, desc = "[c]onceal toggle" }, { "ht", group = "[t]reesitter" }, { "htt", vim.treesitter.inspect_tree, desc = "show [t]ree" }, { "i", group = "[i]mage" }, diff --git a/lua/plugins/common.lua b/lua/plugins/common.lua index 6b341f6..5325ac4 100644 --- a/lua/plugins/common.lua +++ b/lua/plugins/common.lua @@ -7,8 +7,8 @@ return { lazy = false, opts = { styles = {}, - bigfile = { enabled = true }, - notifier = { enabled = true }, + bigfile = { enabled = true, notify = false }, + notifier = { enabled = false }, quickfile = { enabled = true }, statuscolumn = { enabled = false }, words = { enabled = false }, diff --git a/lua/plugins/completion.lua b/lua/plugins/completion.lua index fc126cf..c7780cf 100644 --- a/lua/plugins/completion.lua +++ b/lua/plugins/completion.lua @@ -28,12 +28,12 @@ return { dev = false, ft = { 'quarto', 'markdown', 'rmarkdown' }, config = function() - vim.api.nvim_create_autocmd('FileType', { - pattern = { "markdown", "quarto", "rmarkdown" }, - callback = function() - require('cmp-pandoc-references.lsp').start() - end - }) + -- vim.api.nvim_create_autocmd('FileType', { + -- pattern = { "markdown", "quarto", "rmarkdown" }, + -- callback = function() + -- require('cmp-pandoc-references.lsp').start() + -- end + -- }) end }, { 'hrsh7th/cmp-emoji' }, diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index c889450..68c97e5 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -3,11 +3,14 @@ return { { -- nice quickfix list 'stevearc/quicker.nvim', event = "FileType qf", - opts = {}, - }, - { -- more qf improvements - 'romainl/vim-qf' + opts = { + winfixheight = false, + wrap = true, + }, }, + -- { -- more qf improvements + -- 'romainl/vim-qf' + -- }, -- telescope -- a nice seletion UI also to find and open files @@ -229,7 +232,7 @@ return { 'nvim-tree/nvim-tree.lua', enabled = true, keys = { - { '', ':NvimTreeToggle', desc = 'toggle nvim-tree' }, + { 'ft', ':NvimTreeToggle', desc = 'toggle file [t]ree' }, }, config = function() require('nvim-tree').setup {