This commit is contained in:
sankalp committed 2023-12-30 21:19:06 +05:45
commit 0cbbf662e3
473 files changed
+40489

No files matched your search

@@ -0,0 +1,47 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "yaml" })
end
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "ansible-lint", "ansible-language-server" })
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
ansiblels = {},
},
},
},
{
"mfussenegger/nvim-lint",
opts = {
linters_by_ft = {
ansible = { "ansible-lint" },
},
},
},
{
"mfussenegger/nvim-ansible",
-- stylua: ignore
keys = {
{ "<leader>tp", function() require("ansible").run() end, desc = "Run Ansible Playbooks" },
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"ansible",
},
},
}
@@ -0,0 +1,44 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "bash" })
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
bashls = {},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "bash-language-server" })
end,
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"rcasia/neotest-bash",
},
opts = {
adapters = {
["neotest-bash"] = {},
},
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"bash",
},
},
}
@@ -0,0 +1,10 @@
return {
{ import = "lazyvim.plugins.extras.lang.docker" },
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"docker",
},
},
}
@@ -0,0 +1,23 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, {
"git_config",
"git_rebase",
"gitattributes",
"gitcommit",
"gitignore",
})
end
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"git",
},
},
}
@@ -0,0 +1,22 @@
return {
{ import = "lazyvim.plugins.extras.lang.go" },
{
"ray-x/go.nvim",
dependencies = {
"ray-x/guihua.lua",
"neovim/nvim-lspconfig",
"nvim-treesitter/nvim-treesitter",
},
opts = {},
event = { "CmdlineEnter" },
ft = { "go", "gomod" },
build = ':lua require("go.install").update_all_sync()',
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"go",
},
},
}
@@ -0,0 +1,90 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "haskell" })
end
end,
},
{
"mrcjkb/haskell-tools.nvim",
version = "^3",
ft = { "haskell", "lhaskell", "cabal", "cabalproject" },
dependencies = {
{ "nvim-telescope/telescope.nvim", optional = true },
},
config = function()
require("lazyvim.util").on_load("telescope.nvim", function()
require("telescope").load_extension("ht")
end)
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "haskell-language-server" })
end,
},
{
"mfussenegger/nvim-dap",
optional = true,
dependencies = {
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "haskell-debug-adapter" })
end,
},
},
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = { "mrcjkb/neotest-haskell" },
opts = {
adapters = {
["neotest-haskell"] = {},
},
},
},
{
"mrcjkb/haskell-snippets.nvim",
dependencies = { "L3MON4D3/LuaSnip" },
config = function()
local haskell_snippets = require("haskell-snippets").all
require("luasnip").add_snippets("haskell", haskell_snippets, { key = "haskell" })
end,
},
{
"luc-tielen/telescope_hoogle",
ft = { "haskell", "lhaskell", "cabal", "cabalproject" },
dependencies = { "nvim-telescope/telescope.nvim" },
config = function()
require("lazyvim.util").on_load("telescope.nvim", function()
require("telescope").load_extension("hoogle")
end)
end,
},
-- Make sure lspconfig doesn't start hls,
-- as it conflicts with haskell-tools
{
"neovim/nvim-lspconfig",
opts = {
setup = {
hls = function()
return true
end,
},
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"haskell-9",
},
},
}
@@ -0,0 +1,41 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "julia" })
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
julials = {},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "julia-lsp" })
end,
},
{
"hrsh7th/nvim-cmp",
dependencies = {
"amarakon/nvim-cmp-lua-latex-symbols",
},
opts = function(_, opts)
table.insert(opts.sources, { name = "lua-latex-symbols", option = { cache = true } })
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"julia",
},
},
}
@@ -0,0 +1,38 @@
return {
{ import = "lazyvim.plugins.extras.lang.markdown" },
{
"gaoDean/autolist.nvim",
ft = {
"markdown",
"text",
"tex",
"plaintex",
"norg",
},
opts = {},
keys = {
{ "<tab>", "<cmd>AutolistTab<cr>", mode = { "i" } },
{ "<s-tab>", "<cmd>AutolistShiftTab<cr>", mode = { "i" } },
{ "<CR>", "<CR><cmd>AutolistNewBullet<cr>", mode = { "i" } },
{ "o", "o<cmd>AutolistNewBullet<cr>", mode = { "n" } },
{ "O", "O<cmd>AutolistNewBulletBefore<cr>", mode = { "n" } },
{ "<CR>", "<cmd>AutolistToggleCheckbox<cr><CR>", mode = { "n" } },
{ "<C-r>", "<cmd>AutolistRecalculate<cr>", mode = { "n" } },
{ "].", "<cmd>AutolistCycleNext<cr>", mode = { "n" }, desc = "Next List Type" },
{ "[.", "<cmd>AutolistCyclePrev<cr>", mode = { "n" }, desc = "Prev List Type" },
{ ">>", ">><cmd>AutolistRecalculate<cr>", mode = { "n" } },
{ "<<", "<<<cmd>AutolistRecalculate<cr>", mode = { "n" } },
{ "dd", "dd<cmd>AutolistRecalculate<cr>", mode = { "n" } },
{ "d", "d<cmd>AutolistRecalculate<cr>", mode = { "v" } },
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"markdown",
},
},
}
@@ -0,0 +1,33 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"nix",
})
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"nil",
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
nil_ls = {},
},
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"nix",
},
},
}
@@ -0,0 +1,15 @@
return {
{ import = "lazyvim.plugins.extras.lang.omnisharp" },
{
"nvim-neotest/neotest",
optiona = true,
dependencies = {
"Issafalcon/neotest-dotnet",
},
opts = {
adapters = {
["neotest-dotnet"] = {},
},
},
},
}
@@ -0,0 +1,10 @@
return {
{ import = "lazyvim.plugins.extras.lang.python" },
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"python-3.11",
},
},
}
@@ -0,0 +1,10 @@
return {
{ import = "lazyvim.plugins.extras.lang.rust" },
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"rust",
},
},
}
@@ -0,0 +1,95 @@
local sql_ft = { "sql", "mysql", "plsql" }
return {
{
"nvim-treesitter/nvim-treesitter",
optional = true,
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "sql" })
end
end,
},
{
"folke/edgy.nvim",
optional = true,
opts = function(_, opts)
opts.right = opts.right or {}
table.insert(opts.right, {
title = "Database",
ft = "dbui",
pinned = true,
open = function()
vim.cmd("DBUI")
end,
})
opts.bottom = opts.bottom or {}
table.insert(opts.bottom, {
title = "DB Query Result",
ft = "dbout",
})
end,
},
{
"tpope/vim-dadbod",
cmd = { "DBUI", "DBUIToggle", "DBUIAddConnection", "DBUIFindBuffer" },
dependencies = {
{ "kristijanhusak/vim-dadbod-ui" },
{ "kristijanhusak/vim-dadbod-completion", ft = sql_ft },
{ "jsborjesson/vim-uppercase-sql", ft = sql_ft },
},
init = function()
vim.g.db_ui_save_location = vim.fn.stdpath("data") .. "/db_ui"
vim.g.db_ui_use_nerd_fonts = true
vim.g.db_ui_execute_on_save = false
vim.g.db_ui_use_nvim_notify = true
vim.api.nvim_create_autocmd("FileType", {
pattern = sql_ft,
callback = function()
---@diagnostic disable-next-line: missing-fields
require("cmp").setup.buffer({ sources = { { name = "vim-dadbod-completion" } } })
end,
})
end,
keys = {
{ "<leader>Da", "<cmd>DBUIAddConnection<cr>", desc = "Add Connection" },
{ "<leader>Du", "<cmd>DBUIToggle<cr>", desc = "Toggle UI" },
{ "<leader>Df", "<cmd>DBUIFindBuffer<cr>", desc = "Find Buffer" },
{ "<leader>Dr", "<cmd>DBUIRenameBuffer<cr>", desc = "Rename Buffer" },
{ "<leader>Dq", "<cmd>DBUILastQueryInfo<cr>", desc = "Last Query Info" },
},
},
{
"folke/which-key.nvim",
opts = {
defaults = {
["<leader>D"] = { name = " database" },
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "sqlls" })
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
sqlls = {},
},
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"sqlite",
"postgresql-16",
},
},
}
@@ -0,0 +1,35 @@
return {
{ import = "pugins.extras.lang.web.typescript-extended" },
{ import = "plugins.extras.lang.web.html" },
{ import = "plugins.extras.lang.web.css" },
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "angular" })
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
angularls = {},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "angular-language-server" })
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"angular",
},
},
}
@@ -0,0 +1,32 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "astro" })
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
astro = {},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "astro-language-server" })
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"astro",
},
},
}
@@ -0,0 +1,53 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "css", "scss" })
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
cssmodules_ls = {},
cssls = {
lint = {
compatibleVendorPrefixes = "ignore",
vendorPrefix = "ignore",
unknownVendorSpecificProperties = "ignore",
-- unknownProperties = "ignore", -- duplicate with stylelint
duplicateProperties = "warning",
emptyRules = "warning",
importStatement = "warning",
zeroUnits = "warning",
fontFaceProperties = "warning",
hexColorLength = "warning",
argumentsInColorFunction = "warning",
unknownAtRules = "warning",
ieHack = "warning",
propertyIgnoredDueToDisplay = "warning",
},
},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "cssmodules-language-server", "css-lsp" })
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"css",
"sass",
},
},
}
@@ -0,0 +1,22 @@
return {
{ import = "plugins.extras.lang.web.typescript-extended" },
{
"williamboman/mason.nvim",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"graphql-language-service-cli",
})
end,
},
{
"neovim/nvim-lspconfig",
dependencies = {},
opts = {
servers = {
graphql = {
filetypes = { "graphql", "javascript", "javascriptreact", "typescript", "typescriptreact" },
},
},
},
},
}
@@ -0,0 +1,33 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"html",
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
emmet_language_server = {},
html = {},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "emmet-language-server", "html-lsp" })
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"html",
},
},
}
@@ -0,0 +1,17 @@
return {
{
"neovim/nvim-lspconfig",
opts = {
servers = {
htmx = {},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "htmx-lsp" })
end,
},
}
@@ -0,0 +1,66 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"php",
})
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"phpactor",
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
phpactor = {},
},
},
},
{
"mfussenegger/nvim-dap",
optional = true,
dependencies = {
"williamboman/mason.nvim",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
table.insert(opts.ensure_installed, "php-debug-adapter")
end
end,
},
opts = function()
local dap = require("dap")
local path = require("mason-registry").get_package("php-debug-adapter"):get_install_path()
dap.adapters.php = {
type = "executable",
command = "node",
args = { path .. "/extension/out/phpDebug.js" },
}
end,
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"olimorris/neotest-phpunit",
},
opts = {
adapters = {
["neotest-phpunit"] = {},
},
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"php",
},
},
}
@@ -0,0 +1,32 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "svelte" })
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
svelte = {},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "svelte-language-server" })
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"svelte",
},
},
}
@@ -0,0 +1,24 @@
return {
{ import = "lazyvim.plugins.extras.lang.tailwind" },
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "stylelint" })
end,
},
{
"MaximilianLloyd/tw-values.nvim",
keys = {
{ "<leader>cT", "<cmd>TWValues<cr>", desc = "Tailwind CSS values" },
},
opts = {},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"tailwindcss",
},
},
}
@@ -0,0 +1,114 @@
return {
{ import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "lazyvim.plugins.extras.lang.json" },
{
"dmmulroy/tsc.nvim",
opts = {
flags = {
watch = true,
},
},
keys = {
{ "<leader>ct", ft = { "typescript", "typescriptreact" }, "<cmd>TSC<cr>", desc = "Type Check" },
},
ft = {
"typescript",
"typescriptreact",
},
},
{
-- TODO: Need to look more into this plugin
"pmizio/typescript-tools.nvim",
enabled = false,
event = {
"BufRead *.js,*.jsx,*.mjs,*.cjs,*ts,*tsx",
"BufNewFile *.js,*.jsx,*.mjs,*.cjs,*ts,*tsx",
},
dependencies = {
"nvim-lua/plenary.nvim",
"neovim/nvim-lspconfig",
},
opts = {
on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false
client.server_capabilities.documentRangeFormattingProvider = false
vim.keymap.set(
"n",
"gD",
"<Cmd>TSToolsGoToSourceDefinition<CR>",
{ buffer = bufnr, desc = "Source Definition" }
)
vim.keymap.set(
"n",
"<localleader>i",
"<Cmd>TSToolsAddMissingImports<CR>",
{ buffer = bufnr, desc = "Add missing imports" }
)
vim.keymap.set(
"n",
"<localleader>o",
"<Cmd>TSToolsOrganizeImports<CR>",
{ buffer = bufnr, desc = "Organize imports" }
)
vim.keymap.set(
"n",
"<localleader>r",
"<Cmd>TSToolsRemoveUnused<CR>",
{ buffer = bufnr, desc = "Remove unused variables" }
)
vim.keymap.set("n", "<localleader>f", "<Cmd>TSToolsFixAll<CR>", { buffer = bufnr, desc = "Fix all" })
end,
settings = {
tsserver_file_preferences = {
includeInlayParameterNameHints = "all",
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
code_lens = "all",
},
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"nvim-neotest/neotest-jest",
"adrigzr/neotest-mocha",
"marilari88/neotest-vitest",
},
opts = {
adapters = {
["neotest-jest"] = {
jestCommand = "npm test --",
jestConfigFile = "custom.jest.config.ts",
env = { CI = true },
cwd = function()
return vim.fn.getcwd()
end,
},
["neotest-mocha"] = {
command = "npm test --",
env = { CI = true },
cwd = function(path)
return vim.fn.getcwd()
end,
},
["neotest-vitest"] = {},
},
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"react",
"typescript",
},
},
}
@@ -0,0 +1,32 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "vue" })
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
vuels = {},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "vetur-vls" })
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"vue-3",
},
},
}
@@ -0,0 +1,25 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "xml" })
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
lemminx = {},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "lemminx" })
end,
},
}