Test
This commit is contained in:
parent
c9dc6f5991
commit
b669dc0805
2 changed files with 67 additions and 0 deletions
62
home-manager/common/software/cli/neovim/custom/plugins.lua
Normal file
62
home-manager/common/software/cli/neovim/custom/plugins.lua
Normal file
|
@ -0,0 +1,62 @@
|
|||
|
||||
local overrides = require("custom.configs.overrides")
|
||||
|
||||
---@type NvPluginSpec[]
|
||||
local plugins = {
|
||||
|
||||
-- Override plugin definition options
|
||||
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
-- format & linting
|
||||
{
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
config = function()
|
||||
require "custom.configs.null-ls"
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require "plugins.configs.lspconfig"
|
||||
require "custom.configs.lspconfig"
|
||||
end, -- Override to setup mason-lspconfig
|
||||
},
|
||||
|
||||
-- override plugin configs
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = overrides.mason
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = overrides.treesitter,
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
opts = overrides.nvimtree,
|
||||
},
|
||||
|
||||
-- Install a plugin
|
||||
{
|
||||
"max397574/better-escape.nvim",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("better_escape").setup()
|
||||
end,
|
||||
},
|
||||
|
||||
-- vim-fugitive for integrated Git
|
||||
{
|
||||
"tpope/vim-fugitive",
|
||||
event = "VeryLazy",
|
||||
},
|
||||
-- fzf fuzzyfinder
|
||||
{
|
||||
"vijaymarupudi/nvim-fzf",
|
||||
}
|
||||
}
|
||||
|
||||
return plugins
|
|
@ -39,4 +39,9 @@
|
|||
source = "${pkgs.vimPlugins.nvchad}/";
|
||||
target = "./nvim";
|
||||
};
|
||||
|
||||
xdg.configFile."nvim-custom-plugins" = {
|
||||
enable = true;
|
||||
target = "./nvim/lua/custom/plugins.lua";
|
||||
text = builtins.readFile ./custom/plugins.lua;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue