add venn.nvim and icon-picker.nvim

master
blob42 10 months ago
parent 5b9fe0964f
commit 8b7e531680

@ -1143,4 +1143,21 @@ M.null_ls = {
}
}
M.venn = {
plugin = true,
n = {
["<leader>nv"] = { "<cmd>lua require'custom.plugins.configs.venn'.disable()<CR>", "disable venn" },
}
}
M.iconpicker = {
plugin = true,
n = {
["<leader>ip"] = { "<cmd>IconPickerNormal<cr>", "Icon Picker" },
},
i = {
["<M-c>ip"] = { "<cmd>IconPickerInsert<CR>", "icon picker insert" },
}
}
return M

@ -15,9 +15,9 @@ M.setup = function()
},
["docu4"] = {
system_message_template = "You are a technical documentation assistant to a software developer. You will help improving project documentation.",
user_message_template = "Improve the following text: ```{{text_selection}}```\n. Use a professional. Write as if you are writing a python project documentation for a Github repo. {{command_args}}"
user_message_template = "Improve the following text: ```{{text_selection}}```\n. Use a professional. Write as if you are writing a python project documentation for a Github repo. {{command_args}}",
model = "gpt-4"
},
model = "gpt-4"
}
end

@ -0,0 +1,31 @@
local M = {}
M.enable = function()
local venn_enabled = vim.inspect(vim.b.venn_enabled)
if venn_enabled == "nil" then
vim.b.venn_enabled = true
vim.cmd[[setlocal ve=all]]
-- draw a line on HJKL keystokes
vim.api.nvim_buf_set_keymap(0, "n", "J", "<C-v>j:VBox<CR>", {noremap = true})
vim.api.nvim_buf_set_keymap(0, "n", "K", "<C-v>k:VBox<CR>", {noremap = true})
vim.api.nvim_buf_set_keymap(0, "n", "L", "<C-v>l:VBox<CR>", {noremap = true})
vim.api.nvim_buf_set_keymap(0, "n", "H", "<C-v>h:VBox<CR>", {noremap = true})
-- draw a box by pressing "f" with visual selection
vim.api.nvim_buf_set_keymap(0, "v", "f", ":VBox<CR>", {noremap = true})
else
vim.cmd[[setlocal ve=]]
vim.cmd[[mapclear <buffer>]]
vim.b.venn_enabled = nil
end
end
M.disable = function()
local venn_enabled = vim.inspect(vim.b.venn_enabled)
if venn_enabled ~= "nil" then
vim.cmd[[setlocal ve=]]
vim.cmd[[mapclear <buffer>]]
vim.b.venn_enabled = nil
end
end
return M

@ -280,6 +280,19 @@ return {
},
-- helper to select icons and fonts
["ziontee113/icon-picker.nvim"] = {
cmd = {"IconPicker*"},
setup = function()
require("core.utils").load_mappings "iconpicker"
end,
config = function()
require("icon-picker").setup({
disable_legacy_commands = true
})
end,
},
-- ["p00f/nvim-ts-rainbow"] = {
-- opt = true,
-- },
@ -817,6 +830,15 @@ return {
-- ft = {"plantuml"},
},
-- Diagram Tools
["jbyuki/venn.nvim"] = {
keys = { "<leader>V" },
config = function()
require("custom.plugins.configs.venn").enable()
require("core.utils").load_mappings "venn"
end,
},
-- sql tools
-- https://github.com/tpope/vim-dadbod
-- https://github.com/kristijanhusak/vim-dadbod-ui

Loading…
Cancel
Save