28 lines
552 B
Nix
28 lines
552 B
Nix
{ config, lib, pkgs, pkgs-unstable, ... }:
|
|
|
|
{
|
|
programs.neovim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
# Telescope
|
|
ripgrep
|
|
fd
|
|
# LSP servers
|
|
lua-language-server
|
|
gopls
|
|
python3.pkgs.python-lsp-server
|
|
# Formatters
|
|
stylua
|
|
];
|
|
};
|
|
|
|
# Link the lua config directory as ~/.config/nvim
|
|
# Plugins are managed by lazy.nvim (see nvim-config/lua/eliaskohout/plugins.lua)
|
|
xdg.configFile."nvim" = {
|
|
source = ../../config/nvim;
|
|
recursive = true;
|
|
};
|
|
}
|