feat(nvim): dlang support

This commit is contained in:
winston 2023-08-21 07:05:47 +02:00
parent ba784e1b51
commit 20d1a24292
Signed by: winston
GPG key ID: 3786770EDBC2B481
5 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1 @@
vim.bo.commentstring = "//%s"

View file

@ -189,6 +189,7 @@ local servers = {
"helm_ls", "helm_ls",
"jqls", "jqls",
"lua_ls", "lua_ls",
"serve_d",
"taplo", "taplo",
"teal_ls", "teal_ls",
} }

View file

@ -10,6 +10,7 @@ null.setup({
sources = { sources = {
null.builtins.formatting.alejandra, null.builtins.formatting.alejandra,
null.builtins.formatting.black, null.builtins.formatting.black,
null.builtins.formatting.dfmt,
null.builtins.formatting.deno_fmt.with({ null.builtins.formatting.deno_fmt.with({
filetypes = { filetypes = {
"javascript", "javascript",

View file

@ -2,7 +2,6 @@
return { return {
{ {
"andweeb/presence.nvim", "andweeb/presence.nvim",
enabled = true,
config = function() config = function()
local presence = require("presence") local presence = require("presence")
@ -43,6 +42,7 @@ return {
-- Main image display (either "neovim" or "file") -- Main image display (either "neovim" or "file")
main_image = "file", main_image = "file",
show_time = true, show_time = true,
enable_line_number = true,
buttons = function(_, repo_url) buttons = function(_, repo_url)
local concealed = conceal().state local concealed = conceal().state
@ -63,6 +63,10 @@ return {
end end
end, end,
file_assets = { file_assets = {
["d"] = {
"Dlang",
"https://github.com/dlang.png",
},
["astro"] = { ["astro"] = {
"Astro", "Astro",
"https://github.com/withastro.png", "https://github.com/withastro.png",

View file

@ -1,4 +1,7 @@
{ {config, ...}: {
# make brew available in PATH
environment.systemPath = [config.homebrew.brewPrefix];
homebrew = { homebrew = {
enable = true; enable = true;
caskArgs.require_sha = true; caskArgs.require_sha = true;
@ -7,6 +10,13 @@
cleanup = "uninstall"; cleanup = "uninstall";
upgrade = true; upgrade = true;
}; };
brews = [
# D development, might make these Nix packages someday when the ecosystem isn't as horrid
"dfmt"
"dcd"
"dub"
"ldc"
];
casks = let casks = let
skipSha = name: { skipSha = name: {
inherit name; inherit name;