mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-04-10 23:03:46 +02:00
neovim: Create file for note-taking plugins
This commit is contained in:
parent
e69da91ea2
commit
adc51b97bb
2 changed files with 29 additions and 17 deletions
|
|
@ -8,6 +8,7 @@
|
|||
{
|
||||
imports = [
|
||||
./lsp.nix
|
||||
./notes.nix
|
||||
|
||||
./modules/commands.nix
|
||||
|
||||
|
|
@ -40,15 +41,6 @@
|
|||
|
||||
autoGroups.BigFileOptimizer = { };
|
||||
autoCmd = [
|
||||
{
|
||||
event = [ "User" ];
|
||||
pattern = [ "WikiBufferInitialized" ];
|
||||
callback = helpers.mkRaw ''
|
||||
function()
|
||||
vim.diagnostic.disable(0)
|
||||
end
|
||||
'';
|
||||
}
|
||||
{
|
||||
event = "BufReadPost";
|
||||
pattern = [
|
||||
|
|
@ -91,8 +83,6 @@
|
|||
];
|
||||
|
||||
globals = {
|
||||
wiki_global_load = 0;
|
||||
wiki_root = "~/wiki";
|
||||
neo_tree_remove_legacy_commands = 1;
|
||||
mapleader = " ";
|
||||
};
|
||||
|
|
@ -209,10 +199,6 @@
|
|||
}
|
||||
];
|
||||
|
||||
plugins.markview = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
plugins.nvim-osc52 = {
|
||||
enable = true;
|
||||
package = pkgs.vimPlugins.nvim-osc52;
|
||||
|
|
@ -484,10 +470,8 @@
|
|||
];
|
||||
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
wiki-vim
|
||||
telescope-ui-select-nvim
|
||||
vim-snippets
|
||||
markdown-preview-nvim
|
||||
vim-just
|
||||
ltex_extra-nvim
|
||||
vim-wakatime
|
||||
|
|
|
|||
28
neovim/notes.nix
Normal file
28
neovim/notes.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ helpers, pkgs, ... }:
|
||||
{
|
||||
autoCmd = [
|
||||
{
|
||||
event = [ "User" ];
|
||||
pattern = [ "WikiBufferInitialized" ];
|
||||
callback = helpers.mkRaw ''
|
||||
function()
|
||||
vim.diagnostic.disable(0)
|
||||
end
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
||||
globals = {
|
||||
wiki_global_load = 0;
|
||||
wiki_root = "~/wiki";
|
||||
};
|
||||
|
||||
plugins.markview = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
wiki-vim
|
||||
markdown-preview-nvim
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue