diff --git a/modules/nixvim/ftplugin/asciidoc.nix b/modules/nixvim/ftplugin/asciidoc.nix new file mode 100644 index 00000000..08afc452 --- /dev/null +++ b/modules/nixvim/ftplugin/asciidoc.nix @@ -0,0 +1,11 @@ +{ lib, ... }: + +{ + flake.modules.nixvim.custom = + { pkgs, ... }: + { + extraFiles."after/ftplugin/asciidoc.lua".text = '' + vim.opt_local.makeprg = "${lib.getExe pkgs.asciidoctor} %"; + ''; + }; +} diff --git a/modules/nixvim/ftplugin/go.nix b/modules/nixvim/ftplugin/go.nix new file mode 100644 index 00000000..21abe049 --- /dev/null +++ b/modules/nixvim/ftplugin/go.nix @@ -0,0 +1,9 @@ +{ + flake.modules.nixvim.custom = { + extraFiles."after/ftplugin/go.lua".text = + # lua + '' + vim.opt.makeprg = "go run %" + ''; + }; +} diff --git a/modules/nixvim/ftplugin/php.nix b/modules/nixvim/ftplugin/php.nix new file mode 100644 index 00000000..e531157e --- /dev/null +++ b/modules/nixvim/ftplugin/php.nix @@ -0,0 +1,9 @@ +{ + flake.modules.nixvim.custom = { + extraFiles."after/ftplugin/php.lua".text = + # lua + '' + vim.opt_local.makeprg = "php %"; + ''; + }; +} diff --git a/modules/nixvim/make.nix b/modules/nixvim/make.nix new file mode 100644 index 00000000..1a533b9a --- /dev/null +++ b/modules/nixvim/make.nix @@ -0,0 +1,14 @@ +{ + flake.modules.nixvim.custom = + { pkgs, ... }: + { + extraPackages = with pkgs; [ gnumake ]; + + keymaps = [ + { + action = "make"; + key = "r"; + } + ]; + }; +}