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