mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
54 lines
1.5 KiB
Nix
54 lines
1.5 KiB
Nix
{lib, ...}: {
|
|
programs.nvf.settings.vim = {
|
|
viAlias = false;
|
|
vimAlias = true;
|
|
withNodeJs = true;
|
|
# syntaxHighlighting = true;
|
|
options = {
|
|
autoindent = true;
|
|
smartindent = true;
|
|
shiftwidth = 2;
|
|
foldlevel = 99;
|
|
foldcolumn = "auto:1";
|
|
mousescroll = "ver:1,hor:1";
|
|
mousemoveevent = true;
|
|
fillchars = "eob:‿,fold: ,foldopen:▼,foldsep:⸽,foldclose:⏵";
|
|
signcolumn = "yes";
|
|
tabstop = 2;
|
|
softtabstop = 2;
|
|
wrap = false;
|
|
};
|
|
globals = {
|
|
navic_silence = true; # navic tries to attach multiple LSPs and fails
|
|
suda_smart_edit = 1; # use super user write automatically
|
|
neovide_scale_factor = 0.7;
|
|
neovide_cursor_animation_length = 0.1;
|
|
neovide_cursor_short_animation_length = 0;
|
|
};
|
|
clipboard = {
|
|
enable = true;
|
|
registers = "unnamedplus";
|
|
providers.wl-copy.enable = true;
|
|
};
|
|
luaConfigRC.osc52-clipboard = ''
|
|
vim.g.clipboard = {
|
|
name = 'OSC 52',
|
|
copy = {
|
|
['+'] = require('vim.ui.clipboard.osc52').copy '+',
|
|
['*'] = require('vim.ui.clipboard.osc52').copy '*',
|
|
},
|
|
paste = {
|
|
['+'] = require('vim.ui.clipboard.osc52').paste '+',
|
|
['*'] = require('vim.ui.clipboard.osc52').paste '*',
|
|
},
|
|
}
|
|
'';
|
|
theme = {
|
|
enable = true;
|
|
name = lib.mkForce "catppuccin";
|
|
style = lib.mkForce "mocha";
|
|
transparent = lib.mkForce true;
|
|
};
|
|
};
|
|
}
|