nixos-config/config/programs/vim/default.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

2022-06-12 20:45:19 +00:00
{pkgs, ...}: let
2022-06-12 19:29:42 +00:00
dsquotes = "''";
2022-06-12 20:45:19 +00:00
in {
2022-06-12 19:29:42 +00:00
programs.neovim = {
enable = true;
extraPackages = with pkgs; [
universal-ctags
rust-analyzer
];
extraConfig = ''
lua require("base")
'';
plugins = with pkgs.vimPlugins; [
2022-06-12 20:45:19 +00:00
{
plugin = nerdtree;
config = "lua require(\"${./nerdtree.lua}\")";
}
{
plugin = nerdtree-git-plugin;
config = "lua require(\"${./nerdtree-git.lua}\")";
}
2022-06-12 19:29:42 +00:00
vim-devicons
2022-06-12 20:45:19 +00:00
{
plugin = ctrlp-vim;
config = "lua require(\"${./ctrlp.lua}\")";
}
2022-06-12 19:29:42 +00:00
vim-nix
2022-06-12 20:45:19 +00:00
{
plugin = tagbar;
config = "lua require(\"${./tagbar.lua}\")";
}
{
plugin = vim-airline;
config = "lua require(\"${./airline.lua}\")";
}
2022-06-12 19:29:42 +00:00
copilot-vim
rust-vim # for proper syntax highlighting
2022-06-12 20:45:19 +00:00
{
plugin = nvim-lspconfig;
config = "lua require(\"${./lsp.lua}\")";
}
2022-06-12 19:59:53 +00:00
vim-gitgutter
2022-06-12 20:05:03 +00:00
nvim-web-devicons
2022-06-12 20:45:19 +00:00
{
plugin = bufferline-nvim;
config = "lua require(\"bufferline\").setup{}";
}
2022-06-12 19:29:42 +00:00
];
};
xdg.configFile."nvim/lua/base.lua".source = ./base.lua;
}