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",
"jqls",
"lua_ls",
"serve_d",
"taplo",
"teal_ls",
}

View file

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

View file

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

View file

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