feat: add Markdown Preview and Obsidian, update startup screen and cleanup lsp config (#8)

Added Markdown Preview and the Obsidian plugins.
Updated the Startup screen with links to Github Copilot and Obsidian
Moved the helm-vim plugin from a seperate file into the lsp.nix file.
This commit is contained in:
Roel de Cort 2024-06-23 00:26:19 +02:00 committed by GitHub
parent 5112946501
commit 536677058b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 70 additions and 8 deletions

View file

@ -35,7 +35,6 @@ _: {
./plugins/lsp/lsp.nix
./plugins/lsp/conform.nix
./plugins/lsp/fidget.nix
./plugins/lsp/vim-helm.nix
# Git
./plugins/git/lazygit.nix
@ -46,5 +45,7 @@ _: {
./plugins/utils/whichkey.nix
./plugins/utils/extra_plugins.nix
./plugins/utils/mini.nix
./plugins/utils/markdown-preview.nix
./plugins/utils/obsidian.nix
];
}

View file

@ -2,6 +2,7 @@
plugins = {
lsp-lines = {enable = true;};
lsp-format = {enable = true;};
helm = {enable = true;};
lsp = {
enable = true;
servers = {
@ -15,7 +16,18 @@
tsserver = {enable = true;};
ansiblels = {enable = true;};
jsonls = {enable = true;};
helm-ls = {enable = true;};
helm-ls = {
enable = true;
extraOptions = {
settings = {
"helm-ls" = {
yamlls = {
path = "${pkgs.yaml-language-server}/bin/yaml-language-server";
};
};
};
};
};
yamlls = {
enable = true;
extraOptions = {

View file

@ -1,5 +0,0 @@
_: {
plugins.helm = {
enable = true;
};
}

View file

@ -56,6 +56,16 @@
"Telescope file_browser"
"<leader>fe"
]
[
" Copilot Chat"
"CopilotChat"
"Chat with Github Copilot"
]
[
"󰧑 SecondBrain"
"edit ~/projects/personal/SecondBrain"
"Note taking with Obsidian"
]
];
highlight = "string";
defaultColor = "";

View file

@ -0,0 +1,18 @@
_: {
plugins = {
markdown-preview = {
enable = true;
settings = {
browser = "firefox";
echo_preview_url = true;
port = "6969";
preview_options = {
disable_filename = true;
disable_sync_scroll = true;
sync_scroll_type = "middle";
};
theme = "dark";
};
};
};
}

View file

@ -0,0 +1,25 @@
{
plugins.obsidian = {
enable = true;
settings = {
workspaces = [
{
name = "SecondBrain";
path = "~/projects/personal/SecondBrain";
}
];
templates = {
subdir = "templates";
dateFormat = "%Y-%m-%d";
timeFormat = "%H:%M";
substitutions = {};
};
dailyNotes = {
folder = "0_Daily_Notes";
dateFormat = "%Y-%m-%d";
aliasFormat = "%B %-d, %Y";
};
};
};
}