feat: fix nixfmt
This commit is contained in:
parent
2b593f2e72
commit
a784ba021f
3 changed files with 44 additions and 21 deletions
|
|
@ -435,11 +435,28 @@ require("lazy").setup({
|
|||
|
||||
require("lazy-lsp").setup({
|
||||
configs = {
|
||||
nixd = {
|
||||
settings = {
|
||||
nixd = {
|
||||
options = {
|
||||
nixos = {
|
||||
expr = "(builtins.getFlake \"/home/noa/nixos/\").nixosConfigurations.lambdaOS.options",
|
||||
},
|
||||
home_manager = {
|
||||
expr = "(builtins.getFlake \"/home/noa/nixos/\").homeConfigurations.\"noa@lambdaOS\".options",
|
||||
},
|
||||
},
|
||||
formatting = {
|
||||
command = { "nixfmt" }
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
nil_ls = {
|
||||
settings = {
|
||||
['nil'] = {
|
||||
formatting = {
|
||||
command = { "nixfmt" },
|
||||
command = { "nixfmt" }
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,28 +1,31 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.modules.apps.neovim = {
|
||||
enableLanguages = lib.mkEnableOption "enable LSP languages";
|
||||
};
|
||||
|
||||
config = {
|
||||
programs.neovim =
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
ripgrep
|
||||
luarocks
|
||||
gnumake
|
||||
wget
|
||||
nixpkgs-fmt
|
||||
tree-sitter
|
||||
fd
|
||||
nixfmt-rfc-style
|
||||
];
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
|
||||
extraLuaConfig = lib.fileContents
|
||||
./init.lua;
|
||||
extraLuaConfig = lib.fileContents ./init.lua;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,10 @@ in
|
|||
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services = {
|
||||
desktopManager.plasma6.enable = true;
|
||||
displayManager.defaultSession = "hyprland";
|
||||
};
|
||||
|
||||
xdg.portal.config.common.default = "*";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue