Converted app.nix

This commit is contained in:
Julia Lange 2026-02-18 12:36:16 -08:00
parent 826bb47ca5
commit 4d72b7a141
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto

View file

@ -50,6 +50,7 @@
# extraLuaConfig = '' # extraLuaConfig = ''
# ${builtins.readFile ./options.lua} # ${builtins.readFile ./options.lua}
# ''; # '';
# vim.g.rust_recommended_style = 0
programs.nixvim.colorschemes = with config.neovim.themes; { programs.nixvim.colorschemes = with config.neovim.themes; {
catppuccin = lib.mkIf catppuccin.enable { catppuccin = lib.mkIf catppuccin.enable {
@ -76,79 +77,45 @@
cmp = { cmp = {
enable = nvimcmp.enable; enable = nvimcmp.enable;
autoEnableSources = true; autoEnableSources = true;
settings.sources = lib.options luasnip.enable { name = "cmp-luasnip" }; settings.sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
] + lib.options luasnip.enable { name = "cmp-luasnip" };
}; };
telescope.enable = telescope.enable;
# telescope.fzf.enable = lib.mkEnableOption "Enables telescope-fzf";
treesitter.enable = treesiter.enable;
vimwiki = {
# telescope = { enable = wiki.enable;
# enable = lib.mkEnableOption "Enables telescope"; list = [
# fzf.enable = lib.mkEnableOption "Enables telescope-fzf"; {
# }; path = "${config.xdg.userDirs.documents}/wiki";
# treesitter.enable = lib.mkEnableOption "Enables treesitter"; links_space_char = "_";
# wiki.enable = lib.mkEnableOption "Enables a wiki"; ext = ".md";
# syntax = "markdown";
#
# wiki = lopts cfgp.wiki.enable (with pkgs.vimPlugins; [
# {
# plugin = vimwiki;
# type = "lua";
# config = ''
# vim.g.vimwiki_list = {
# {
# path = '${config.xdg.userDirs.documents}/wiki',
# links_space_char = '_',
# ext = '.md',
# syntax = 'markdown',
# }
# }
# '';
# }
# ]);
} }
];
};
};
# extraPackages = with pkgs; [ programs.nixvim.plugins = with config.neovim.languages; {
# (lib.mkIf config.neovim.languages.c.enable libclang) nix.enable = nix.enable;
# (lib.mkIf config.neovim.languages.go.enable gopls) rustaceanvim.enable = rust.enable;
# (lib.mkIf config.neovim.languages.nix.enable nil) typsecript-tools.enable = typescript.enable;
# (lib.mkIf config.neovim.languages.rust.enable rust-analyzer) };
# ]; programs.nixvim.lsp = {
# enable = true;
# # Additional packages are added through imports servers = with config.neovim.languages; {
# plugins = let clangd.enable = c.enable;
# lopts = lib.lists.optionals; gopls.enable = go.enable;
# cfgp = config.neovim.plugins; nil_ls.enable = nix.enable;
# cfgl = config.neovim.languages; rust_analyzer.enable = rust.enable;
# cfgt = config.neovim.themes; tsserver.enable = typescript.enable;
# };
# nix-pkg = lopts cfgl.nix.enable (with pkgs.vimPlugins; [ };
# vim-nix
# ]);
#
# rust-pkg = lopts cfgl.rust.enable (with pkgs.vimPlugins; [
# {
# plugin = rustaceanvim;
# type = "lua";
# config = ''
# vim.g.rust_recommended_style = 0
# '';
# }
# ]);
#
# go-pkg = lopts cfgl.go.enable (with pkgs.vimPlugins; [
# go-nvim
# ]);
#
# typescript-pkg = lopts cfgl.typescript.enable (with pkgs.vimPlugins; [
# {
# plugin = typescript-tools-nvim;
# type = "lua";
# config = ''
# require("typescript-tools").setup {}
# '';
# }
# ]);
# };
}; };
} }