mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
Further work
This commit is contained in:
parent
70da3fe0b5
commit
64235f2775
3 changed files with 278 additions and 118 deletions
|
|
@ -15,16 +15,70 @@ let cfg = config.modules.neovim;
|
|||
in {
|
||||
options.modules.neovim = { enable = mkEnableOption "neovim"; };
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
|
||||
home.file.".config/nvim" = {
|
||||
source = ./nvim;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
|
||||
{
|
||||
plugin = github-theme;
|
||||
config = ''
|
||||
lua << EOF
|
||||
vim.cmd('colorscheme github_dark_high_contrast')
|
||||
EOF
|
||||
'';
|
||||
}
|
||||
|
||||
lazygit.nvim
|
||||
{
|
||||
plugin = LazyVim;
|
||||
config = ''
|
||||
lua << EOF
|
||||
return {
|
||||
{'williamboman/mason.nvim', enabled = false },
|
||||
{'nvim-treesitter/nvim-treesitter', enabled = false },
|
||||
}
|
||||
EOF
|
||||
'';
|
||||
}
|
||||
|
||||
{
|
||||
plugin = lsp-zero-nvim;
|
||||
config = ''
|
||||
lua << EOF
|
||||
branch = 'v2.x'
|
||||
requires = {
|
||||
{'neovim/nvim-lspconfig'},
|
||||
{'hrsh7th/nvim-cmp'},
|
||||
{'hrsh7th/cmp-nvim-lsp'},
|
||||
{'L3MON4D3/LuaSnip'},
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
||||
{
|
||||
plugin = nvim-treesitter.withAllGrammars
|
||||
config = ''
|
||||
lua << EOF
|
||||
|
||||
EOF
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
nil nixfmt
|
||||
sumneko-lua-language-server stylua
|
||||
haskell-language-server hlint
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue