diff options
Diffstat (limited to 'modules/user')
| -rw-r--r-- | modules/user/default.nix | 7 | ||||
| -rw-r--r-- | modules/user/desktop/apps/librewolf.nix | 12 | ||||
| -rw-r--r-- | modules/user/editors/kakoune/default.nix | 42 |
3 files changed, 48 insertions, 13 deletions
diff --git a/modules/user/default.nix b/modules/user/default.nix index ed7c5b2..efe8517 100644 --- a/modules/user/default.nix +++ b/modules/user/default.nix @@ -1,4 +1,9 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: { imports = [ ./desktop diff --git a/modules/user/desktop/apps/librewolf.nix b/modules/user/desktop/apps/librewolf.nix index 91f86f5..2b55dc9 100644 --- a/modules/user/desktop/apps/librewolf.nix +++ b/modules/user/desktop/apps/librewolf.nix @@ -1,5 +1,15 @@ -{ config, ... }: { + config, + lib, + pkgs, + ... +}: +{ + nixpkgs.config.permittedInsecurePackages = [ + "librewolf-151.0.2-1" + "librewolf-unwrapped-151.0.2-1" + ]; + programs.librewolf = { profiles = let diff --git a/modules/user/editors/kakoune/default.nix b/modules/user/editors/kakoune/default.nix index e4f4aa5..f519c5b 100644 --- a/modules/user/editors/kakoune/default.nix +++ b/modules/user/editors/kakoune/default.nix @@ -22,13 +22,33 @@ { commands = "lsp-enable-window"; name = "WinSetOption"; - option = "filetype=(css|html|java|zig)"; + option = "filetype=(css|html|java|json|zig)"; } { - commands = "set window filetype json"; - name = "WinCreate"; + commands = "set buffer filetype json"; + name = "BufCreate"; option = ".*\.mcmeta"; } + { + commands = '' + set buffer lsp_servers %{ + [vscode-json-language-server] + args = ["--stdio"] + root_globs = [".git"] + settings_section = "_" + [[vscode-json-language-server.settings._]] + provideFormatter = true + json.format.enable = true + json.validate.enabble = true + + [[vscode-json-language-server.settings._.json.schemas]] + fileMatch = ["fabric.mod.json"] + url = "https://www.schemastore.org/fabric.mod.json" + } + ''; + name = "BufSetOption"; + option = "filetype=json"; + } ]; indentWidth = 0; @@ -52,16 +72,16 @@ mode = "normal"; } { - docstring = "Rename the symbol below the cursor"; - effect = ":lsp-rename-prompt<ret>"; - key = "<a-r>"; - mode = "normal"; + docstring = "Rename the symbol below the cursor"; + effect = ":lsp-rename-prompt<ret>"; + key = "<a-r>"; + mode = "normal"; } { - docstring = "Create a new file"; - effect = ":e %sh{${(pkgs.writeShellScript "newfile" (builtins.readFile ./newfile.sh))}}<ret>"; - key = "<c-a-n>"; - mode = "normal"; + docstring = "Create a new file"; + effect = ":e %sh{${(pkgs.writeShellScript "newfile" (builtins.readFile ./newfile.sh))}}<ret>"; + key = "<c-a-n>"; + mode = "normal"; } ]; |
