Skip to content

Commit e250a23

Browse files
chore(build): auto-generate docs
1 parent b0e8f0b commit e250a23

6 files changed

Lines changed: 15 additions & 73 deletions

File tree

docs/extras/editor/fzf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ end
363363
{ "<leader>fR", LazyVim.pick("oldfiles", { cwd = vim.uv.cwd() }), desc = "Recent (cwd)" },
364364
-- git
365365
{ "<leader>gc", "<cmd>FzfLua git_commits<CR>", desc = "Commits" },
366-
{ "<leader>gd", "<cmd>FzfLua git_diff<cr>", desc = "Git Diff (hunks)" },
366+
{ "<leader>gd", "<cmd>FzfLua git_diff<cr>", desc = "Git Diff (files)" },
367367
{ "<leader>gl", "<cmd>FzfLua git_commits<CR>", desc = "Commits" },
368368
{ "<leader>gs", "<cmd>FzfLua git_status<CR>", desc = "Status" },
369369
{ "<leader>gS", "<cmd>FzfLua git_stash<cr>", desc = "Git Stash" },

docs/extras/lang/clangd.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ opts = {
8888
```lua
8989
{
9090
"p00f/clangd_extensions.nvim",
91-
lazy = true,
92-
config = function() end,
91+
ft = { "c", "cpp", "objc", "objcpp" },
9392
opts = {
9493
inlay_hints = {
9594
inline = false,
@@ -171,13 +170,6 @@ opts = {
171170
},
172171
},
173172
},
174-
setup = {
175-
clangd = function(_, opts)
176-
local clangd_ext_opts = LazyVim.opts("clangd_extensions.nvim")
177-
require("clangd_extensions").setup(vim.tbl_deep_extend("force", clangd_ext_opts or {}, { server = opts }))
178-
return false
179-
end,
180-
},
181173
}
182174
```
183175

@@ -228,13 +220,6 @@ opts = {
228220
},
229221
},
230222
},
231-
setup = {
232-
clangd = function(_, opts)
233-
local clangd_ext_opts = LazyVim.opts("clangd_extensions.nvim")
234-
require("clangd_extensions").setup(vim.tbl_deep_extend("force", clangd_ext_opts or {}, { server = opts }))
235-
return false
236-
end,
237-
},
238223
},
239224
}
240225
```

docs/extras/lang/python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ opts = {}
257257
opts = {
258258
options = {
259259
notify_user_on_venv_activation = true,
260+
override_notify = false,
260261
},
261262
}
262263
```
@@ -273,6 +274,7 @@ opts = {
273274
opts = {
274275
options = {
275276
notify_user_on_venv_activation = true,
277+
override_notify = false,
276278
},
277279
},
278280
-- Call config for Python files and load the cached venv automatically

docs/extras/lang/typescript.md

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -147,28 +147,6 @@ opts = {
147147
return true
148148
end,
149149
vtsls = function(_, opts)
150-
if vim.lsp.config.denols and vim.lsp.config.vtsls then
151-
---@param server string
152-
local resolve = function(server)
153-
local markers, root_dir = vim.lsp.config[server].root_markers, vim.lsp.config[server].root_dir
154-
vim.lsp.config(server, {
155-
root_dir = function(bufnr, on_dir)
156-
local is_deno = vim.fs.root(bufnr, { "deno.json", "deno.jsonc" }) ~= nil
157-
if is_deno == (server == "denols") then
158-
if root_dir then
159-
return root_dir(bufnr, on_dir)
160-
elseif type(markers) == "table" then
161-
local root = vim.fs.root(bufnr, markers)
162-
return root and on_dir(root)
163-
end
164-
end
165-
end,
166-
})
167-
end
168-
resolve("denols")
169-
resolve("vtsls")
170-
end
171-
172150
Snacks.util.lsp.on({ name = "vtsls" }, function(buffer, client)
173151
client.commands["_typescript.moveToFileRefactoring"] = function(command, ctx)
174152
---@type string, string, lsp.Range
@@ -355,28 +333,6 @@ opts = {
355333
return true
356334
end,
357335
vtsls = function(_, opts)
358-
if vim.lsp.config.denols and vim.lsp.config.vtsls then
359-
---@param server string
360-
local resolve = function(server)
361-
local markers, root_dir = vim.lsp.config[server].root_markers, vim.lsp.config[server].root_dir
362-
vim.lsp.config(server, {
363-
root_dir = function(bufnr, on_dir)
364-
local is_deno = vim.fs.root(bufnr, { "deno.json", "deno.jsonc" }) ~= nil
365-
if is_deno == (server == "denols") then
366-
if root_dir then
367-
return root_dir(bufnr, on_dir)
368-
elseif type(markers) == "table" then
369-
local root = vim.fs.root(bufnr, markers)
370-
return root and on_dir(root)
371-
end
372-
end
373-
end,
374-
})
375-
end
376-
resolve("denols")
377-
resolve("vtsls")
378-
end
379-
380336
Snacks.util.lsp.on({ name = "vtsls" }, function(buffer, client)
381337
client.commands["_typescript.moveToFileRefactoring"] = function(command, ctx)
382338
---@type string, string, lsp.Range

docs/extras/ui/mini-indentscope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ opts = {
9292

9393
## [snacks.nvim](https://github.com/folke/snacks.nvim)
9494

95-
disable snacks scroll when mini-indentscope is enabled
95+
disable snacks scope when mini-indentscope is enabled
9696

9797

9898
<Tabs>

docs/plugins/treesitter.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ opts = {
3030
"javascript",
3131
"jsdoc",
3232
"json",
33-
"jsonc",
3433
"lua",
3534
"luadoc",
3635
"luap",
@@ -91,7 +90,6 @@ opts = {
9190
"javascript",
9291
"jsdoc",
9392
"json",
94-
"jsonc",
9593
"lua",
9694
"luadoc",
9795
"luap",
@@ -268,15 +266,16 @@ opts = {
268266
local desc = table.concat(parts, " or ")
269267
desc = (key:sub(1, 1) == "[" and "Prev " or "Next ") .. desc
270268
desc = desc .. (key:sub(2, 2) == key:sub(2, 2):upper() and " End" or " Start")
271-
if not (vim.wo.diff and key:find("[cC]")) then
272-
vim.keymap.set({ "n", "x", "o" }, key, function()
273-
require("nvim-treesitter-textobjects.move")[method](query, "textobjects")
274-
end, {
275-
buffer = buf,
276-
desc = desc,
277-
silent = true,
278-
})
279-
end
269+
vim.keymap.set({ "n", "x", "o" }, key, function()
270+
if vim.wo.diff and key:find("[cC]") then
271+
return vim.cmd("normal! " .. key)
272+
end
273+
require("nvim-treesitter-textobjects.move")[method](query, "textobjects")
274+
end, {
275+
buffer = buf,
276+
desc = desc,
277+
silent = true,
278+
})
280279
end
281280
end
282281
end

0 commit comments

Comments
 (0)