support mdx
This commit is contained in:
parent
985a4ddc86
commit
d8e37cdf92
3 changed files with 10 additions and 6 deletions
|
|
@ -14,12 +14,12 @@ let
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
binding = "<Super>Return";
|
binding = "<Super>Return";
|
||||||
command = "gnome-terminal";
|
command = "${pkgs.kitty}/bin/kitty";
|
||||||
name = "focus-terminal";
|
name = "focus-terminal";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
binding = "F12";
|
binding = "F12";
|
||||||
command = "gnome-terminal -- ${((import ../zsh/scripts.nix) pkgs).calc}";
|
command = "${pkgs.kitty}/bin/kitty -- ${((import ../zsh/scripts.nix) pkgs).calc}";
|
||||||
name = "calculator";
|
name = "calculator";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
|
vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
|
||||||
|
|
||||||
vim.cmd([[
|
|
||||||
let g:astro_typescript = 'enable'
|
|
||||||
]])
|
|
||||||
|
|
||||||
require("render-markdown").setup {
|
require("render-markdown").setup {
|
||||||
latex_converter = '${pkgs.python312Packages.pylatexenc}/bin/latex2text',
|
latex_converter = '${pkgs.python312Packages.pylatexenc}/bin/latex2text',
|
||||||
}
|
}
|
||||||
|
|
@ -14,6 +10,11 @@ vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
||||||
pattern = {"*.md"},
|
pattern = {"*.md"},
|
||||||
callback = function() otter.activate({'python', 'rust', 'c', 'lua', 'bash' }, true, true, nil) end,
|
callback = function() otter.activate({'python', 'rust', 'c', 'lua', 'bash' }, true, true, nil) end,
|
||||||
})
|
})
|
||||||
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
mdx = "markdown",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
require("onedark").setup {
|
require("onedark").setup {
|
||||||
style = "deep",
|
style = "deep",
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@ in
|
||||||
|
|
||||||
package = pkgs.neovim-unwrapped;
|
package = pkgs.neovim-unwrapped;
|
||||||
|
|
||||||
|
clipboard.providers.wl-copy.enable = true;
|
||||||
|
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
key = "<f2>";
|
key = "<f2>";
|
||||||
|
|
@ -350,6 +352,7 @@ in
|
||||||
render-markdown
|
render-markdown
|
||||||
otter
|
otter
|
||||||
vim-astro
|
vim-astro
|
||||||
|
nvim-web-devicons
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfigLua = builtins.readFile ./config.lua;
|
extraConfigLua = builtins.readFile ./config.lua;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue