mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 23:46:13 +01:00
102 lines
1.7 KiB
Lua
102 lines
1.7 KiB
Lua
local overrides = require("custom.configs.overrides")
|
|
|
|
---@type NvPluginSpec[]
|
|
local plugins = {
|
|
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
config = function()
|
|
require "plugins.configs.lspconfig"
|
|
require "custom.configs.lspconfig"
|
|
end,
|
|
},
|
|
|
|
{
|
|
"williamboman/mason.nvim",
|
|
opts = {
|
|
ensure_installed = {
|
|
"rust-analyzer",
|
|
}
|
|
},
|
|
},
|
|
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = overrides.treesitter,
|
|
},
|
|
|
|
{
|
|
"nvim-tree/nvim-tree.lua",
|
|
opts = overrides.nvimtree,
|
|
},
|
|
|
|
{
|
|
"rust-lang/rust.vim",
|
|
ft = "rust",
|
|
init = function ()
|
|
vim.g.rustfmt_autosave = 1
|
|
end
|
|
},
|
|
|
|
{
|
|
"saecki/crates.nvim",
|
|
ft = {"rust", "toml"},
|
|
config = function(_, opts)
|
|
local crates = require('crates')
|
|
crates.setup(opts)
|
|
crates.show()
|
|
end,
|
|
},
|
|
|
|
{
|
|
"hrsh7th/nvim-cmp",
|
|
opts = function()
|
|
local M = require "plugins.configs.cmp"
|
|
table.insert(M.sources, {name = "crates"})
|
|
return M
|
|
end,
|
|
},
|
|
|
|
{
|
|
"nanotee/zoxide.vim",
|
|
lazy = false,
|
|
},
|
|
|
|
{
|
|
"othree/html5.vim",
|
|
},
|
|
|
|
{
|
|
"pangloss/vim-javascript",
|
|
},
|
|
|
|
{
|
|
"evanleck/vim-svelte",
|
|
},
|
|
|
|
{
|
|
"max397574/better-escape.nvim",
|
|
event = "InsertEnter",
|
|
config = function()
|
|
require("better_escape").setup()
|
|
end,
|
|
},
|
|
|
|
{
|
|
"stevearc/conform.nvim",
|
|
config = function()
|
|
require "custom.configs.conform"
|
|
end,
|
|
},
|
|
|
|
-- All NvChad plugins are lazy-loaded by default
|
|
-- For a plugin to be loaded, you will need to set either `ft`, `cmd`, `keys`, `event`, or set `lazy = false`
|
|
-- If you want a plugin to load on startup, add `lazy = false` to a plugin spec, for example
|
|
-- {
|
|
-- "mg979/vim-visual-multi",
|
|
-- lazy = false,
|
|
-- }
|
|
}
|
|
|
|
return plugins
|