nix: Add syntax highlighting to strings

Note that alejandra currently does not handle these comments properly.

See: https://github.com/kamadorueda/alejandra/issues/366
This commit is contained in:
Donovan Glover 2023-06-10 20:13:13 -04:00
parent e42bfc091a
commit 31ad806ce7
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 36 additions and 36 deletions

View File

@ -16,7 +16,7 @@ in {
{
programs.neovim = {
enable = true;
extraConfig = ''
extraConfig = /* vim */ ''
filetype plugin indent on
set undofile
set spell
@ -74,7 +74,7 @@ in {
{
plugin = nvim-tree-lua;
type = "lua";
config = ''
config = /* lua */ ''
require("nvim-tree").setup()
vim.api.nvim_create_autocmd({"QuitPre"}, {
@ -121,7 +121,7 @@ in {
{
plugin = nvim-lspconfig;
type = "lua";
config = "
config = /* lua */ ''
local lspconfig = require('lspconfig')
lspconfig.nil_ls.setup {}
lspconfig.rust_analyzer.setup {}
@ -150,7 +150,7 @@ in {
vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts)
end,
})
";
'';
}
{
plugin = nvim-base16;
@ -160,7 +160,7 @@ in {
{
plugin = lualine-nvim;
type = "lua";
config = ''
config = /* lua */ ''
local theme = require("lualine.themes.base16")
theme.normal.b.bg = nil
theme.normal.c.bg = nil
@ -206,7 +206,7 @@ in {
}
{
plugin = vimtex;
config = ''
config = /* vim */ ''
" Disable all keybinds so we can define our own
let g:vimtex_mappings_enabled = 0
let g:vimtex_imaps_enabled = 0
@ -222,7 +222,7 @@ in {
}
{
plugin = vim-startify;
config = ''
config = /* vim */ ''
let g:startify_custom_header = startify#pad(split(system("${pkgs.fish}/bin/fish -c 'cat (random choice (${pkgs.fd}/bin/fd . ${pkgs.ponysay}/share/ponysay/quotes --ignore-file ~/.config/fd/ponyignore))'"), '\n'))
let g:startify_change_to_dir = 0

View File

@ -6,7 +6,7 @@
home-manager.sharedModules = [
{
xdg.configFile."waycorner/config.toml".text = ''
xdg.configFile."waycorner/config.toml".text = /* toml */ ''
[application_launcher]
enter_command = [ "hyprctl", "dispatch", "workspace", "empty" ]
exit_command = [ "${pkgs.lnch}/bin/lnch", "${pkgs.rofi}/bin/rofi", "-show", "drun" ]