mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Add opencode notification & mdx support
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
settings = {
|
||||
small_model = "github-copilot/gpt-5-mini";
|
||||
autoupdate = false;
|
||||
plugin = ["@mohak34/opencode-notifier"];
|
||||
};
|
||||
tui = {
|
||||
theme = "catppuccin";
|
||||
@@ -31,6 +32,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."opencode/opencode-notifier.json".text =
|
||||
builtins.toJSON {
|
||||
sound = false;
|
||||
showSessionTitle = true;
|
||||
};
|
||||
|
||||
xdg.configFile."nixpkgs/config.nix".text = '' {
|
||||
allowUnfree = true;
|
||||
android_sdk.accept_license = true;
|
||||
|
||||
+2
-1
@@ -44,11 +44,12 @@ in {
|
||||
./hyprlock.nix
|
||||
noctalia.homeModules.default
|
||||
];
|
||||
home.packages = [
|
||||
home.packages = with pkgs; [
|
||||
wallpaper
|
||||
screenshot
|
||||
screenshot-freeze
|
||||
record
|
||||
libnotify
|
||||
];
|
||||
|
||||
services.darkman = let
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
; extends
|
||||
|
||||
((inline) @_inline (#lua-match? @_inline "^%s*import")) @nospell
|
||||
((inline) @_inline (#lua-match? @_inline "^%s*export")) @nospell
|
||||
@@ -0,0 +1,22 @@
|
||||
; extends
|
||||
|
||||
((inline) @injection.content
|
||||
(#lua-match? @injection.content "^%s*import")
|
||||
(#set! injection.language "typescript"))
|
||||
|
||||
((inline) @injection.content
|
||||
(#lua-match? @injection.content "^%s*export")
|
||||
(#set! injection.language "typescriptreact"))
|
||||
|
||||
((inline) @injection.content
|
||||
(#lua-match? @injection.content "^<")
|
||||
(#set! injection.language "typescriptreact"))
|
||||
|
||||
((indented_code_block) @injection.content
|
||||
(#lua-match? @injection.content "^%s*<")
|
||||
(#set! injection.language "typescriptreact")
|
||||
(#set! injection.include-children))
|
||||
|
||||
((html_block) @injection.content
|
||||
(#set! injection.language "typescriptreact")
|
||||
(#set! injection.include-children))
|
||||
@@ -0,0 +1,4 @@
|
||||
; extends
|
||||
|
||||
(fenced_code_block) @codeblock.outer
|
||||
(fenced_code_block (code_fence_content) @codeblock.inner)
|
||||
@@ -139,6 +139,7 @@ in
|
||||
nil
|
||||
vscode-langservers-extracted # html, jsonls
|
||||
marksman
|
||||
mdx-language-server
|
||||
texlab
|
||||
helm-ls
|
||||
zls
|
||||
@@ -181,5 +182,13 @@ in
|
||||
},
|
||||
},
|
||||
}
|
||||
vim.lsp.config['mdx_analyzer'] = {
|
||||
init_options = {
|
||||
typescript = {
|
||||
enabled = true,
|
||||
tsdk = "${pkgs.typescript}/lib/node_modules/typescript/lib",
|
||||
},
|
||||
},
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ vim.lsp.enable({
|
||||
"qmlls",
|
||||
"roslyn_ls",
|
||||
"astro",
|
||||
"mdx_analyzer",
|
||||
})
|
||||
|
||||
-- vim.api.nvim_create_autocmd("LspAttach", {
|
||||
|
||||
@@ -175,8 +175,10 @@ vim.filetype.add({
|
||||
extension = {
|
||||
-- appsettings.json.model at work
|
||||
model = 'json',
|
||||
mdx = "mdx",
|
||||
},
|
||||
})
|
||||
vim.treesitter.language.register("markdown", "mdx")
|
||||
|
||||
|
||||
vim.cmd.colorscheme("catppuccin")
|
||||
|
||||
Reference in New Issue
Block a user