From 96140a3d882a4767d80136ecb3be24ef63a395b6 Mon Sep 17 00:00:00 2001 From: Julien Rabier Date: Mon, 14 Oct 2024 15:39:32 +0200 Subject: [PATCH] [zsh, nvim] add plugins for neovim and improve zsh --- dot_zshrc.tmpl | 3 ++ .../nvim/lua/config/keymaps.lua | 13 ++------ private_dot_config/nvim/lua/plugins/minty.lua | 1 + .../nvim/lua/plugins/precog.lua | 30 +++++++++++++++++++ 4 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 private_dot_config/nvim/lua/plugins/minty.lua create mode 100644 private_dot_config/nvim/lua/plugins/precog.lua diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 5044045..dcad707 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -24,6 +24,9 @@ setopt extendedglob setopt nomatch setopt interactivecomments +autoload -U select-word-style +select-word-style bash + autoload -U compinit compinit zstyle ':completion:*:*:cd:*' tag-order local-directories path-directories diff --git a/private_dot_config/nvim/lua/config/keymaps.lua b/private_dot_config/nvim/lua/config/keymaps.lua index c72a80c..ff95f14 100644 --- a/private_dot_config/nvim/lua/config/keymaps.lua +++ b/private_dot_config/nvim/lua/config/keymaps.lua @@ -3,14 +3,7 @@ -- Add any additional keymaps here vim.keymap.set("n", ",c", "2GddOTo: contact@sysnove.frjddOCc: ") vim.keymap.set("n", ",b", ":!bash gen.sh") --- function to toggle "normal" diagnostics or lsp-lines diagnostics. -local function toggle_diagnostics() - local diagnostics_on = require("lsp_lines").toggle() - if diagnostics_on then - vim.diagnostic.config({ virtual_text = false }) - else - vim.diagnostic.config({ virtual_text = { spacing = 4, prefix = "●" } }) - end -end -vim.keymap.set("n", "ui", toggle_diagnostics, { desc = "Toggle [i]nline diagnostic type" }) vim.keymap.set("i", "", "Telescope notmuch theme=cursor") +vim.keymap.set("n", "cp", function() + require("minty.huefy").open() +end) diff --git a/private_dot_config/nvim/lua/plugins/minty.lua b/private_dot_config/nvim/lua/plugins/minty.lua new file mode 100644 index 0000000..02e1620 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/minty.lua @@ -0,0 +1 @@ +return { "nvchad/minty", dependencies = { "nvchad/volt" } } diff --git a/private_dot_config/nvim/lua/plugins/precog.lua b/private_dot_config/nvim/lua/plugins/precog.lua new file mode 100644 index 0000000..73b1895 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/precog.lua @@ -0,0 +1,30 @@ +return { + "tris203/precognition.nvim", + --event = "VeryLazy", + opts = { + -- startVisible = true, + -- showBlankVirtLine = true, + -- highlightColor = { link = "Comment" }, + -- hints = { + -- Caret = { text = "^", prio = 2 }, + -- Dollar = { text = "$", prio = 1 }, + -- MatchingPair = { text = "%", prio = 5 }, + -- Zero = { text = "0", prio = 1 }, + -- w = { text = "w", prio = 10 }, + -- b = { text = "b", prio = 9 }, + -- e = { text = "e", prio = 8 }, + -- W = { text = "W", prio = 7 }, + -- B = { text = "B", prio = 6 }, + -- E = { text = "E", prio = 5 }, + -- }, + -- gutterHints = { + -- G = { text = "G", prio = 10 }, + -- gg = { text = "gg", prio = 9 }, + -- PrevParagraph = { text = "{", prio = 8 }, + -- NextParagraph = { text = "}", prio = 8 }, + -- }, + -- disabled_fts = { + -- "startify", + -- }, + }, +}