This repository has been archived on 2026-03-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nixos/home/editor/neovim/default.nix
Torjus Håkestad c98de25647
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m12s
Periodic flake update / flake-update (push) Successful in 2m23s
home: add labmcp service, remove zls, add .mcp.json
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-11 13:31:41 +01:00

71 lines
1.5 KiB
Nix

{ pkgs, ... }:
{
programs = {
neovim = {
enable = true;
defaultEditor = true;
vimAlias = true;
extraPackages = with pkgs; [
nodePackages_latest.nodejs
];
plugins = with pkgs.vimPlugins; [
catppuccin-nvim
cmp-buffer
cmp-cmdline
cmp-nvim-lsp
cmp_luasnip
copilot-cmp
copilot-lua
lsp-zero-nvim
lualine-nvim
luasnip
nvim-cmp
nvim-lspconfig
plenary-nvim
telescope-nvim
undotree
vim-floaterm
vim-fugitive
vim-sleuth
(nvim-treesitter.withPlugins (p: [
p.tree-sitter-yaml
p.tree-sitter-nix
p.tree-sitter-go
p.tree-sitter-lua
p.tree-sitter-vim
p.tree-sitter-bash
p.tree-sitter-json
p.tree-sitter-python
p.tree-sitter-c
p.tree-sitter-cmake
p.tree-sitter-cpp
p.tree-sitter-markdown
p.tree-sitter-markdown-inline
]))
];
initLua = ''
${builtins.readFile ./plugins.lua}
${builtins.readFile ./options.lua}
${builtins.readFile ./keybinds.lua}
'';
};
};
home.packages = with pkgs; [
# nix stuff
nixfmt
statix
# LSPs
gopls
pyright
nodePackages.typescript-language-server
nodePackages.typescript
nil
yaml-language-server
lua-language-server
clang-tools
ruff
];
home.sessionVariables.EDITOR = "nvim";
}