Converted app.nix
This commit is contained in:
parent
826bb47ca5
commit
4d72b7a141
1 changed files with 38 additions and 71 deletions
|
|
@ -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 = {
|
||||||
|
enable = wiki.enable;
|
||||||
|
list = [
|
||||||
|
{
|
||||||
|
path = "${config.xdg.userDirs.documents}/wiki";
|
||||||
|
links_space_char = "_";
|
||||||
|
ext = ".md";
|
||||||
|
syntax = "markdown";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# telescope = {
|
programs.nixvim.plugins = with config.neovim.languages; {
|
||||||
# enable = lib.mkEnableOption "Enables telescope";
|
nix.enable = nix.enable;
|
||||||
# fzf.enable = lib.mkEnableOption "Enables telescope-fzf";
|
rustaceanvim.enable = rust.enable;
|
||||||
# };
|
typsecript-tools.enable = typescript.enable;
|
||||||
# treesitter.enable = lib.mkEnableOption "Enables treesitter";
|
};
|
||||||
# wiki.enable = lib.mkEnableOption "Enables a wiki";
|
programs.nixvim.lsp = {
|
||||||
#
|
enable = true;
|
||||||
#
|
servers = with config.neovim.languages; {
|
||||||
# wiki = lopts cfgp.wiki.enable (with pkgs.vimPlugins; [
|
clangd.enable = c.enable;
|
||||||
# {
|
gopls.enable = go.enable;
|
||||||
# plugin = vimwiki;
|
nil_ls.enable = nix.enable;
|
||||||
# type = "lua";
|
rust_analyzer.enable = rust.enable;
|
||||||
# config = ''
|
tsserver.enable = typescript.enable;
|
||||||
# vim.g.vimwiki_list = {
|
};
|
||||||
# {
|
};
|
||||||
# path = '${config.xdg.userDirs.documents}/wiki',
|
|
||||||
# links_space_char = '_',
|
|
||||||
# ext = '.md',
|
|
||||||
# syntax = 'markdown',
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# '';
|
|
||||||
# }
|
|
||||||
# ]);
|
|
||||||
}
|
|
||||||
|
|
||||||
# extraPackages = with pkgs; [
|
|
||||||
# (lib.mkIf config.neovim.languages.c.enable libclang)
|
|
||||||
# (lib.mkIf config.neovim.languages.go.enable gopls)
|
|
||||||
# (lib.mkIf config.neovim.languages.nix.enable nil)
|
|
||||||
# (lib.mkIf config.neovim.languages.rust.enable rust-analyzer)
|
|
||||||
# ];
|
|
||||||
#
|
|
||||||
# # Additional packages are added through imports
|
|
||||||
# plugins = let
|
|
||||||
# lopts = lib.lists.optionals;
|
|
||||||
# cfgp = config.neovim.plugins;
|
|
||||||
# cfgl = config.neovim.languages;
|
|
||||||
# cfgt = config.neovim.themes;
|
|
||||||
#
|
|
||||||
# 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 {}
|
|
||||||
# '';
|
|
||||||
# }
|
|
||||||
# ]);
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue