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:
parent
5112946501
commit
536677058b
7 changed files with 70 additions and 8 deletions
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
_: {
|
|
||||||
plugins.helm = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -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 = "";
|
||||||
|
|
|
||||||
18
config/plugins/utils/markdown-preview.nix
Normal file
18
config/plugins/utils/markdown-preview.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
25
config/plugins/utils/obsidian.nix
Normal file
25
config/plugins/utils/obsidian.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue