feat(nvim): dlang support
This commit is contained in:
parent
ba784e1b51
commit
20d1a24292
5 changed files with 19 additions and 2 deletions
1
home/apps/neovim/ftplugin/d.lua
Normal file
1
home/apps/neovim/ftplugin/d.lua
Normal file
|
@ -0,0 +1 @@
|
|||
vim.bo.commentstring = "//%s"
|
|
@ -189,6 +189,7 @@ local servers = {
|
|||
"helm_ls",
|
||||
"jqls",
|
||||
"lua_ls",
|
||||
"serve_d",
|
||||
"taplo",
|
||||
"teal_ls",
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue