mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
init
This commit is contained in:
commit
259d9ed5a0
111 changed files with 7219 additions and 0 deletions
5
user/modules/neovim/.luarc.json
Normal file
5
user/modules/neovim/.luarc.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"diagnostics.disable": [
|
||||
"missing-fields"
|
||||
]
|
||||
}
|
||||
23
user/modules/neovim/default.nix
Normal file
23
user/modules/neovim/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.neovim;
|
||||
|
||||
in
|
||||
{ options.modules.user.neovim = { enable = mkEnableOption "user.neovim"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
extraPackages = import ./pkgs.nix { inherit pkgs; };
|
||||
};
|
||||
|
||||
home.file.".config/nvim" = {
|
||||
source = ./nvim;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
1
user/modules/neovim/nvim
Submodule
1
user/modules/neovim/nvim
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit c341ac8840e8a19ab98bcc5084f51157ddaf8730
|
||||
24
user/modules/neovim/pkgs.nix
Normal file
24
user/modules/neovim/pkgs.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
# Essential LSPs for config files (project-specific LSPs go in devShells)
|
||||
lsp = with pkgs; [
|
||||
nixd
|
||||
lua-language-server
|
||||
marksman
|
||||
taplo
|
||||
];
|
||||
|
||||
lsp' = with pkgs.nodePackages; [
|
||||
vscode-langservers-extracted # jsonls, html, cssls
|
||||
bash-language-server
|
||||
yaml-language-server
|
||||
];
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
lazygit
|
||||
gcc
|
||||
];
|
||||
|
||||
in
|
||||
extraPackages ++ lsp ++ lsp'
|
||||
Loading…
Add table
Add a link
Reference in a new issue