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

@ -44,7 +44,6 @@ This repository contains the configuration for NixVim, a Neovim configuration ma
- `lsp.nix`: Configures the Neovim LSP client. - `lsp.nix`: Configures the Neovim LSP client.
- `conform.nix`: Configures the Conform plugin for automatic code formatting. - `conform.nix`: Configures the Conform plugin for automatic code formatting.
- `fidget.nix`: Configures the Fidget plugin for displaying LSP diagnostics in the status line. - `fidget.nix`: Configures the Fidget plugin for displaying LSP diagnostics in the status line.
- `vim-helm.nix`: Configures Vim-Helm plugin for helm template syntax
## Git ## Git
@ -57,6 +56,8 @@ This repository contains the configuration for NixVim, a Neovim configuration ma
- `whichkey.nix`: Configures the WhichKey plugin for displaying key mappings. - `whichkey.nix`: Configures the WhichKey plugin for displaying key mappings.
- `extra_plugins.nix`: Configures additional plugins. - `extra_plugins.nix`: Configures additional plugins.
- `mini.nix`: Configures the Mini plugin. - `mini.nix`: Configures the Mini plugin.
- `obsidian.nix`: Confiugres the Obsidian plugin, for note-taking purposes.
- `markdown-preview.nix`: Configures the Markdown Preview plugin.
Please refer to the individual `.nix` files for more detailed configuration information. Please refer to the individual `.nix` files for more detailed configuration information.

View file

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

View file

@ -2,6 +2,7 @@
plugins = { plugins = {
lsp-lines = {enable = true;}; lsp-lines = {enable = true;};
lsp-format = {enable = true;}; lsp-format = {enable = true;};
helm = {enable = true;};
lsp = { lsp = {
enable = true; enable = true;
servers = { servers = {
@ -15,7 +16,18 @@
tsserver = {enable = true;}; tsserver = {enable = true;};
ansiblels = {enable = true;}; ansiblels = {enable = true;};
jsonls = {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 = { yamlls = {
enable = true; enable = true;
extraOptions = { extraOptions = {

View file

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

View file

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