Idea : Configure ideavimrc.

This commit is contained in:
Dmitry Voronin 2024-09-01 04:05:55 +03:00
parent 04c4351436
commit 4ce5d01b83
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 32 additions and 17 deletions

View file

@ -1,20 +1,21 @@
{ self, config, ... } @args: let { self, config, ... } @args: let
btop = import ./top/btop args; btop = import ./top/btop args;
editor = import ./editorconfig args; editor = import ./editorconfig args;
foot = import ./foot args; foot = import ./foot args;
fuzzel = import ./fuzzel args; fuzzel = import ./fuzzel args;
git = import ./git args; git = import ./git args;
gtk3 = import ./gtk/3 args; gtk3 = import ./gtk/3 args;
htop = import ./top/htop args; htop = import ./top/htop args;
keyd = import ./keyd args; jetbrains = import ./jetbrains args;
mako = import ./mako args; keyd = import ./keyd args;
mangohud = import ./mangohud args; mako = import ./mako args;
nvim = import ./nvim args; mangohud = import ./mangohud args;
ssh = import ./ssh args; nvim = import ./nvim args;
sway = import ./sway args; ssh = import ./ssh args;
tmux = import ./tmux args; sway = import ./sway args;
waybar = import ./waybar args; tmux = import ./tmux args;
yazi = import ./yazi args; waybar = import ./waybar args;
yazi = import ./yazi args;
in { in {
".config/MangoHud/MangoHud.conf".text = mangohud.config; ".config/MangoHud/MangoHud.conf".text = mangohud.config;
".config/MangoHud/presets.conf".text = mangohud.presets; ".config/MangoHud/presets.conf".text = mangohud.presets;
@ -41,4 +42,5 @@ in {
".ssh/config".text = ssh.text; ".ssh/config".text = ssh.text;
".Wallpaper".source = config.module.wallpaper.path; ".Wallpaper".source = config.module.wallpaper.path;
".template".source = ./template; ".template".source = ./template;
".ideavimrc".text = jetbrains.ideavimrc;
} }

View file

@ -0,0 +1,11 @@
{ util, ... }: {
ideavimrc = util.trimTabs ''
set scrolloff=4
set incsearch
set hlsearch
set clipboard=unnamedplus
Plug 'tpope/vim-commentary'
Plug 'machakann/vim-highlightedyank'
'';
}

View file

@ -2,15 +2,17 @@
text = '' text = ''
-- TODO: Add comments and separate files. -- TODO: Add comments and separate files.
vim.opt.clipboard = "unnamedplus" vim.opt.clipboard = "unnamedplus"
-- vim.opt.completeopt = "menuone,noselect"
vim.opt.cursorline = false vim.opt.cursorline = false
vim.opt.fixeol = false vim.opt.fixeol = false
vim.opt.incsearch = true;
vim.opt.number = true vim.opt.number = true
vim.opt.scrolloff = 4
vim.opt.splitbelow = true vim.opt.splitbelow = true
vim.opt.splitright = true vim.opt.splitright = true
vim.opt.termguicolors = true vim.opt.termguicolors = true
vim.opt.ttyfast = true vim.opt.ttyfast = true
vim.opt.wildmode = "longest,list" vim.opt.wildmode = "longest,list"
-- vim.opt.completeopt = "menuone,noselect"
-- Disable continuing comments on newline. -- Disable continuing comments on newline.
vim.cmd("autocmd BufEnter * set fo-=c fo-=r fo-=o") vim.cmd("autocmd BufEnter * set fo-=c fo-=r fo-=o")