Update 2024-06-25

This commit is contained in:
Kristofers Solo
2024-06-25 09:26:26 +03:00
parent ac77ae7902
commit fe927a0e6c
14 changed files with 112 additions and 73 deletions

View File

@@ -23,12 +23,13 @@ return {
typescriptreact = js,
markdown = { "cbfmt", "markdownlint", "markdown-toc" },
vimwiki = { "cbfmt", "markdownlint", "markdown-toc" },
json = { "jq" },
c = { "clang-format" },
cpp = { "clang-format" },
cmake = { "cmake_format" },
htmldjango = { "djlint", "rustywind" },
html = { "djlint", "rustywind" },
-- typst = { "typstyle", "typstfmt" },
typst = { "typstyle", "typstfmt" },
rust = { "rustfmt", "leptosfmt", "yew-fmt" },
sql = { "pg_format" },
yaml = { "yamlfmt" },

View File

@@ -2,9 +2,10 @@ return {
"NStefan002/donut.nvim",
version = "*",
lazy = false,
enabled = false,
cms = "Donut",
opts = {
timeout = 300,
timeout = 600,
sync_donuts = false,
},
}

View File

@@ -1,6 +1,7 @@
return {
"lewis6991/gitsigns.nvim",
lazy = false,
event = "BufReadPre",
cmd = "Gitsigns",
keys = {
{
"<leader>gb",
@@ -12,31 +13,42 @@ return {
},
opts = {
signs = {
add = { hl = "GitSignsAdd", text = "", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn" },
change = {
hl = "GitSignsChange",
text = "",
numhl = "GitSignsChangeNr",
linehl = "GitSignsChangeLn",
},
delete = {
hl = "GitSignsDelete",
text = "",
numhl = "GitSignsDeleteNr",
linehl = "GitSignsDeleteLn",
},
topdelete = {
hl = "GitSignsDelete",
text = "",
numhl = "GitSignsDeleteNr",
linehl = "GitSignsDeleteLn",
},
changedelete = {
hl = "GitSignsChange",
text = "",
numhl = "GitSignsChangeNr",
linehl = "GitSignsChangeLn",
},
add = { text = "" },
change = { text = "" },
delete = { text = "_" },
topdelete = { text = "" },
changedelete = { text = "~" },
untracked = { text = "" },
},
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
watch_gitdir = {
follow_files = true,
},
auto_attach = true,
attach_to_untracked = true,
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = {
virt_text = true,
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
delay = 100,
ignore_whitespace = false,
virt_text_priority = 100,
},
current_line_blame_formatter = "<author>, <author_time:%R> - <summary>",
sign_priority = 6,
update_debounce = 100,
status_formatter = nil, -- Use default
max_file_length = 10000, -- Disable if file is longer than this (in lines)
preview_config = {
-- Options passed to nvim_open_win
border = "single",
style = "minimal",
relative = "cursor",
row = 0,
col = 1,
},
},
}

View File

@@ -0,0 +1,6 @@
return {
"barrett-ruth/http-codes.nvim",
dependencies = { "nvim-telescope/telescope.nvim" },
keys = { { "<leader>pdh", vim.cmd.HTTPCodes, desc = "[H]TTP" } },
config = true,
}

View File

@@ -0,0 +1,8 @@
return {
"ysmb-wtsg/in-and-out.nvim",
config = function()
vim.keymap.set("i", "<C-l>", function()
require("in-and-out").in_and_out()
end)
end,
}

View File

@@ -48,7 +48,7 @@ return {
nmap("gi", vim.lsp.buf.implementation, "[G]oto [I]mplementation")
vim.keymap.set(
"i",
"<C-l>",
"<C-h>",
vim.lsp.buf.signature_help,
{ buffer = event.buf, desc = "LSP: Signature Documentation" }
)
@@ -133,7 +133,6 @@ return {
"emmet_ls",
"html",
"jedi_language_server",
"jsonls",
"lua_ls",
"tailwindcss",
"texlab",

View File

@@ -2,6 +2,8 @@ return {
"nvim-neorg/neorg",
dependencies = {
{ "vhyrro/luarocks.nvim", config = true },
{ "nvim-lua/plenary.nvim" },
{ "nvim-neorg/neorg-telescope" },
},
-- cmd = { "Neorg" },
lazy = false,
@@ -34,6 +36,15 @@ return {
},
},
-- ["core.ui.calendar"] = {},
["core.integrations.telescope"] = {
config = {
insert_file_link = {
-- Whether to show the title preview in telescope. Affects performance with a large
-- number of files.
show_title_preview = true,
},
},
},
},
},
}

View File

@@ -13,7 +13,6 @@ return {
html = { "djlint" },
lua = { "selene" },
cmake = { "cmakelint" },
json = { "jsonlint" },
["*"] = { "codespell", "typos" },
},
},

View File

@@ -10,7 +10,6 @@ return {
{ "nvim-telescope/telescope-bibtex.nvim" },
{ "tsakirist/telescope-lazy.nvim" },
{ "chip/telescope-software-licenses.nvim" },
{ "barrett-ruth/telescope-http.nvim" },
{ "crispgm/telescope-heading.nvim" },
{ "benfowler/telescope-luasnip.nvim" },
{ "paopaol/telescope-git-diffs.nvim" },
@@ -96,13 +95,6 @@ return {
"<cmd>Telescope software-licenses find<cr>",
desc = "[S]oftware Licenses",
},
{
"<leader>pdh",
function()
require("telescope").extensions.http.list()
end,
desc = "[H]TTP",
},
{
"<leader>gw",
function()
@@ -299,7 +291,6 @@ return {
pcall(telescope.load_extension, "git_worktree") -- Telescope git_worktree
pcall(telescope.load_extension, "lazy") -- Telescope lazy
pcall(telescope.load_extension, "software-licenses") -- Telescope software-licenses list
pcall(telescope.load_extension, "http") -- Telescope http list
pcall(telescope.load_extension, "heading") -- Telescope heading
pcall(telescope.load_extension, "luasnip") -- Telescope luasnip
pcall(telescope.load_extension, "git_diffs") -- Telescope git_diffs diff_commits