mirror of
https://github.com/softinio/nix-config.git
synced 2025-10-19 03:26:40 -07:00
re-organize nixvim
This commit is contained in:
parent
7584b9ebfc
commit
10e3123b7f
22 changed files with 480 additions and 219 deletions
44
programs/nixvim/plugins/editing.nix
Normal file
44
programs/nixvim/plugins/editing.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
# Auto-close brackets and quotes
|
||||
nvim-autopairs.enable = true;
|
||||
|
||||
# Flash jump/search enhancement
|
||||
flash.enable = true;
|
||||
|
||||
# Image clipboard support
|
||||
img-clip = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default = {
|
||||
embed_image_as_base64 = false;
|
||||
prompt_for_file_name = false;
|
||||
drag_and_drop = {
|
||||
insert_mode = true;
|
||||
};
|
||||
use_absolute_path = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Trim trailing whitespace
|
||||
trim = {
|
||||
enable = true;
|
||||
settings = {
|
||||
highlight = true;
|
||||
ft_blocklist = [
|
||||
"checkhealth"
|
||||
"floaterm"
|
||||
"lspinfo"
|
||||
"neo-tree"
|
||||
"TelescopePrompt"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Collection of small useful plugins
|
||||
snacks.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue