Migrate configuration to nixvim
This commit is contained in:
parent
be9fe07ba1
commit
8772a4ca32
18 changed files with 759 additions and 0 deletions
23
config/plugins/editor/bufdelete.nix
Normal file
23
config/plugins/editor/bufdelete.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
plugins.bufdelete = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bd";
|
||||
action = "<cmd>Bdelete<cr>";
|
||||
options.desc = "Buffer Delete";
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bw";
|
||||
action = "<cmd>Bwipeout<cr>";
|
||||
options.desc = "Buffer Wipeout";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
8
config/plugins/editor/comment.nix
Normal file
8
config/plugins/editor/comment.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
plugins.comment = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
17
config/plugins/editor/neo-tree.nix
Normal file
17
config/plugins/editor/neo-tree.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
plugins.neo-tree = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "\\";
|
||||
action = "<cmd>Neotree toggle<cr>";
|
||||
options.desc = "Toggle Neotree";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
24
config/plugins/editor/treesitter.nix
Normal file
24
config/plugins/editor/treesitter.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Tree-sitter is a parser generator tool and an incremental parsing library.
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
|
||||
# Options provided to the require('nvim-treesitter.configs').setup function.
|
||||
settings = {
|
||||
highlight = {
|
||||
enable = true; # Enable syntax highlighing.
|
||||
};
|
||||
indent = {
|
||||
enable = true; # Enable auto indentation.
|
||||
};
|
||||
};
|
||||
|
||||
# Highlight `extraConfigLua` as lua.
|
||||
nixvimInjections = true;
|
||||
# Install all grammar packages.
|
||||
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue