mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-05-14 23:05:09 +02:00
use nix as a nvim packet manager
This commit is contained in:
parent
ef6a2ccad3
commit
7c6eea3d68
7 changed files with 989 additions and 107 deletions
57
plugins.py
Normal file
57
plugins.py
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
plugins = [
|
||||
"aklt/plantuml-syntax",
|
||||
"kyazdani42/nvim-web-devicons",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-lua/lsp-status.nvim",
|
||||
"kosayoda/nvim-lightbulb",
|
||||
"Yggdroot/indentLine",
|
||||
"lewis6991/gitsigns.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"bluz71/vim-moonfly-colors",
|
||||
"hrsh7th/vim-vsnip",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-calc",
|
||||
"hrsh7th/cmp-path",
|
||||
"kdheepak/cmp-latex-symbols",
|
||||
"hrsh7th/nvim-cmp",
|
||||
"dpelle/vim-Grammalecte",
|
||||
"dpelle/vim-LanguageTool",
|
||||
"nvim-lua/lsp_extensions.nvim",
|
||||
"ray-x/lsp_signature.nvim",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"nvim-lua/popup.nvim",
|
||||
"NTBBloodbath/galaxyline.nvim",
|
||||
"drmikehenry/vim-headerguard",
|
||||
"andymass/vim-matchup",
|
||||
"b3nj5m1n/kommentary",
|
||||
"onsails/lspkind-nvim",
|
||||
"editorconfig/editorconfig-vim",
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
"nathom/filetype.nvim",
|
||||
"tweekmonster/startuptime.vim",
|
||||
]
|
||||
|
||||
inputs = ""
|
||||
nvim_plugins = "nvim-plugins = [\n";
|
||||
for plugin in plugins:
|
||||
repo,plugin = plugin.split('/')
|
||||
inputs += f'"{plugin}" = {{\n'
|
||||
inputs += f' url = "github:{repo}/{plugin}";\n'
|
||||
inputs += f' flake = false;\n'
|
||||
inputs += "};\n"
|
||||
|
||||
nvim_plugins += " {\n"
|
||||
nvim_plugins += f' name = "{plugin}";\n'
|
||||
nvim_plugins += f' path = inputs."{plugin}";\n'
|
||||
nvim_plugins += " }\n"
|
||||
nvim_plugins += "];\n"
|
||||
|
||||
with open("flake.nix.in") as f:
|
||||
flake = f.read()
|
||||
flake = flake.replace("@inputs@\n", inputs)
|
||||
flake = flake.replace("@plugins@\n", nvim_plugins)
|
||||
out = open("flake.nix", "w")
|
||||
out.write(flake)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue