♻️ refactor(nvim): devdocs added as optional in a lot of plugin specs
This commit is contained in:
parent
9b7dfb060e
commit
44312e16bb
25 changed files with 196 additions and 32 deletions
|
@ -2,11 +2,8 @@
|
||||||
"extras": [
|
"extras": [
|
||||||
"lazyvim.plugins.extras.coding.yanky",
|
"lazyvim.plugins.extras.coding.yanky",
|
||||||
"lazyvim.plugins.extras.formatting.black",
|
"lazyvim.plugins.extras.formatting.black",
|
||||||
"lazyvim.plugins.extras.formatting.prettier",
|
|
||||||
"lazyvim.plugins.extras.lang.python",
|
|
||||||
"lazyvim.plugins.extras.lang.python-semshi",
|
"lazyvim.plugins.extras.lang.python-semshi",
|
||||||
"lazyvim.plugins.extras.lang.yaml",
|
"lazyvim.plugins.extras.lang.yaml",
|
||||||
"lazyvim.plugins.extras.linting.eslint",
|
|
||||||
"lazyvim.plugins.extras.ui.edgy",
|
"lazyvim.plugins.extras.ui.edgy",
|
||||||
"lazyvim.plugins.extras.util.dot",
|
"lazyvim.plugins.extras.util.dot",
|
||||||
"plugins.extras.coding.ai.codeium",
|
"plugins.extras.coding.ai.codeium",
|
||||||
|
@ -39,14 +36,17 @@
|
||||||
"plugins.extras.editor.telescope.zoxide",
|
"plugins.extras.editor.telescope.zoxide",
|
||||||
"plugins.extras.editor.terminal.floaterm",
|
"plugins.extras.editor.terminal.floaterm",
|
||||||
"plugins.extras.formatting.isort",
|
"plugins.extras.formatting.isort",
|
||||||
|
"plugins.extras.formatting.prettier",
|
||||||
"plugins.extras.formatting.rustfmt",
|
"plugins.extras.formatting.rustfmt",
|
||||||
"plugins.extras.lang.ansible",
|
"plugins.extras.lang.ansible",
|
||||||
"plugins.extras.lang.bash",
|
"plugins.extras.lang.bash",
|
||||||
"plugins.extras.lang.git",
|
"plugins.extras.lang.git",
|
||||||
"plugins.extras.lang.markdown-extended",
|
"plugins.extras.lang.markdown-extended",
|
||||||
|
"plugins.extras.lang.python-extended",
|
||||||
"plugins.extras.lang.web.css",
|
"plugins.extras.lang.web.css",
|
||||||
"plugins.extras.lang.web.html",
|
"plugins.extras.lang.web.html",
|
||||||
"plugins.extras.lang.web.typescript-extended",
|
"plugins.extras.lang.web.typescript-extended",
|
||||||
|
"plugins.extras.linting.eslint-extended",
|
||||||
"plugins.extras.linting.shellcheck",
|
"plugins.extras.linting.shellcheck",
|
||||||
"plugins.extras.lsp.actions-preview",
|
"plugins.extras.lsp.actions-preview",
|
||||||
"plugins.extras.lsp.compiler",
|
"plugins.extras.lsp.compiler",
|
||||||
|
|
|
@ -34,27 +34,10 @@ return {
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "q", ":close<CR>", {})
|
vim.api.nvim_buf_set_keymap(bufnr, "n", "q", ":close<CR>", {})
|
||||||
end,
|
end,
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"css",
|
|
||||||
"html",
|
|
||||||
"javascript",
|
"javascript",
|
||||||
"lua-5.4",
|
"lua-5.4",
|
||||||
"python-3.11",
|
|
||||||
"react",
|
|
||||||
"typescript",
|
|
||||||
"angular",
|
|
||||||
"bash",
|
|
||||||
"fish-3.6",
|
"fish-3.6",
|
||||||
"git",
|
"git",
|
||||||
"go",
|
|
||||||
"rust",
|
|
||||||
"sass",
|
|
||||||
"vue-3",
|
|
||||||
"docker",
|
|
||||||
"markdown",
|
|
||||||
"svelte",
|
|
||||||
"tailwindcss",
|
|
||||||
"eslint",
|
|
||||||
"prettier",
|
|
||||||
"npm",
|
"npm",
|
||||||
"node",
|
"node",
|
||||||
},
|
},
|
||||||
|
|
10
.config/nvim/lua/plugins/extras/formatting/prettier.lua
Normal file
10
.config/nvim/lua/plugins/extras/formatting/prettier.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"prettier",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -37,4 +37,11 @@ return {
|
||||||
{ "<leader>tp", function() require("ansible").run() end, desc = "Run Ansible Playbooks" },
|
{ "<leader>tp", function() require("ansible").run() end, desc = "Run Ansible Playbooks" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"ansible",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,11 @@ return {
|
||||||
vim.list_extend(opts.ensure_installed, { "bash-language-server" })
|
vim.list_extend(opts.ensure_installed, { "bash-language-server" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"bash",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
10
.config/nvim/lua/plugins/extras/lang/docker-extended.lua
Normal file
10
.config/nvim/lua/plugins/extras/lang/docker-extended.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.docker" },
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"docker",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -1,14 +1,23 @@
|
||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
{
|
||||||
opts = function(_, opts)
|
"nvim-treesitter/nvim-treesitter",
|
||||||
if type(opts.ensure_installed) == "table" then
|
opts = function(_, opts)
|
||||||
vim.list_extend(opts.ensure_installed, {
|
if type(opts.ensure_installed) == "table" then
|
||||||
"git_config",
|
vim.list_extend(opts.ensure_installed, {
|
||||||
"git_rebase",
|
"git_config",
|
||||||
"gitattributes",
|
"git_rebase",
|
||||||
"gitcommit",
|
"gitattributes",
|
||||||
"gitignore",
|
"gitcommit",
|
||||||
})
|
"gitignore",
|
||||||
end
|
})
|
||||||
end,
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"git",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,4 +12,11 @@ return {
|
||||||
ft = { "go", "gomod" },
|
ft = { "go", "gomod" },
|
||||||
build = ':lua require("go.install").update_all_sync()',
|
build = ':lua require("go.install").update_all_sync()',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"go",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,4 +86,11 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"haskell-9",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,4 +31,11 @@ return {
|
||||||
table.insert(opts.sources, { name = "lua-latex-symbols", option = { cache = true } })
|
table.insert(opts.sources, { name = "lua-latex-symbols", option = { cache = true } })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"julia",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,4 +37,11 @@ return {
|
||||||
{ "d", "d<cmd>AutolistRecalculate<cr>", mode = { "v" } },
|
{ "d", "d<cmd>AutolistRecalculate<cr>", mode = { "v" } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"markdown",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,4 +23,11 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"nix",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
10
.config/nvim/lua/plugins/extras/lang/python-extended.lua
Normal file
10
.config/nvim/lua/plugins/extras/lang/python-extended.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.python" },
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"python-3.11",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
10
.config/nvim/lua/plugins/extras/lang/rust-extended.lua
Normal file
10
.config/nvim/lua/plugins/extras/lang/rust-extended.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.rust" },
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"rust",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -84,4 +84,12 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"sqlite",
|
||||||
|
"postgresql-16",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,11 @@ return {
|
||||||
vim.list_extend(opts.ensure_installed, { "angular-language-server" })
|
vim.list_extend(opts.ensure_installed, { "angular-language-server" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"angular",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,11 @@ return {
|
||||||
vim.list_extend(opts.ensure_installed, { "astro-language-server" })
|
vim.list_extend(opts.ensure_installed, { "astro-language-server" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"astro",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,4 +42,12 @@ return {
|
||||||
vim.list_extend(opts.ensure_installed, { "cssmodules-language-server", "css-lsp" })
|
vim.list_extend(opts.ensure_installed, { "cssmodules-language-server", "css-lsp" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"css",
|
||||||
|
"sass",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,4 +23,11 @@ return {
|
||||||
vim.list_extend(opts.ensure_installed, { "emmet-language-server", "html-lsp" })
|
vim.list_extend(opts.ensure_installed, { "emmet-language-server", "html-lsp" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"html",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,4 +44,11 @@ return {
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"php",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,11 @@ return {
|
||||||
vim.list_extend(opts.ensure_installed, { "svelte-language-server" })
|
vim.list_extend(opts.ensure_installed, { "svelte-language-server" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"svelte",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,4 +14,11 @@ return {
|
||||||
},
|
},
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"tailwindcss",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,4 +73,12 @@ return {
|
||||||
code_lens = "all",
|
code_lens = "all",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"react",
|
||||||
|
"typescript",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,11 @@ return {
|
||||||
vim.list_extend(opts.ensure_installed, { "vetur-vls" })
|
vim.list_extend(opts.ensure_installed, { "vetur-vls" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"vue-3",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
10
.config/nvim/lua/plugins/extras/linting/eslint-extended.lua
Normal file
10
.config/nvim/lua/plugins/extras/linting/eslint-extended.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
{ import = "lazyvim.plugins.extras.linting.eslint" },
|
||||||
|
{
|
||||||
|
"luckasRanarison/nvim-devdocs",
|
||||||
|
optional = true,
|
||||||
|
ensure_installed = {
|
||||||
|
"eslint",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue