[zsh, nvim] add plugins for neovim and improve zsh
This commit is contained in:
parent
296cad9d45
commit
96140a3d88
@ -24,6 +24,9 @@ setopt extendedglob
|
|||||||
setopt nomatch
|
setopt nomatch
|
||||||
setopt interactivecomments
|
setopt interactivecomments
|
||||||
|
|
||||||
|
autoload -U select-word-style
|
||||||
|
select-word-style bash
|
||||||
|
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
compinit
|
compinit
|
||||||
zstyle ':completion:*:*:cd:*' tag-order local-directories path-directories
|
zstyle ':completion:*:*:cd:*' tag-order local-directories path-directories
|
||||||
|
|||||||
@ -3,14 +3,7 @@
|
|||||||
-- Add any additional keymaps here
|
-- Add any additional keymaps here
|
||||||
vim.keymap.set("n", ",c", "<esc>2GddOTo: contact@sysnove.fr<esc>jddOCc: <esc>")
|
vim.keymap.set("n", ",c", "<esc>2GddOTo: contact@sysnove.fr<esc>jddOCc: <esc>")
|
||||||
vim.keymap.set("n", ",b", ":!bash gen.sh<cr><cr>")
|
vim.keymap.set("n", ",b", ":!bash gen.sh<cr><cr>")
|
||||||
-- 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", "<Leader>ui", toggle_diagnostics, { desc = "Toggle [i]nline diagnostic type" })
|
|
||||||
vim.keymap.set("i", "<C-a>", "<cmd>Telescope notmuch theme=cursor<CR>")
|
vim.keymap.set("i", "<C-a>", "<cmd>Telescope notmuch theme=cursor<CR>")
|
||||||
|
vim.keymap.set("n", "<leader>cp", function()
|
||||||
|
require("minty.huefy").open()
|
||||||
|
end)
|
||||||
|
|||||||
1
private_dot_config/nvim/lua/plugins/minty.lua
Normal file
1
private_dot_config/nvim/lua/plugins/minty.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
return { "nvchad/minty", dependencies = { "nvchad/volt" } }
|
||||||
30
private_dot_config/nvim/lua/plugins/precog.lua
Normal file
30
private_dot_config/nvim/lua/plugins/precog.lua
Normal file
@ -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",
|
||||||
|
-- },
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user