fix zsh, add postman, new neovim settings

This commit is contained in:
Buliway 2025-01-27 11:35:10 +03:00
parent d657c43851
commit b21ea374b1
3 changed files with 24 additions and 4 deletions

View file

@ -50,16 +50,25 @@
};
# Environment variables that will be set for zsh session.
sessionVariables = {
HISTORY_SUBSTRING_SEARCH_FUZZY = "не работает блять"; # Нечёткий поиск для стрелок вверх/вниз.
};
# sessionVariables = {
# };
# Extra commands that should be added to .zshrc
initExtra = ''
source ${pkgs.zsh-you-should-use}/share/zsh/plugins/you-should-use/you-should-use.plugin.zsh
'';
historySubstringSearch.enable = true; # Чтоб вверх/вниз учитывал уже написанную команду
historySubstringSearch = {
enable = true; # Чтоб вверх/вниз учитывал уже написанную команду
searchUpKey = [
"^[[A"
"$terminfo[kcuu1]"
];
searchDownKey = [
"^[[B"
"$terminfo[kcud1]"
];
};
oh-my-zsh = { # https://github.com/ohmyzsh/ohmyzsh
enable = true;

View file

@ -186,6 +186,7 @@
taplo # TOML LSP
vim-language-server # VimScript LSP
go-migrate # Database migrations. CLI and Golang library
postman # API Development Environment
# For nvim
tree-sitter # For nvim

View file

@ -20,15 +20,25 @@ vim.opt.relativenumber = true
-- Табуляция в 4 символа
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.softtabstop = 4
-- Юзать пробелы вместо табов
vim.opt.expandtab = true
-- yaml lsp за меня решают сколько пробелов мне надо. Это фикс
-- Их параметры конфига для переназначения не работают. Пришлось костыль сделать
vim.cmd [[
autocmd FileType yaml setlocal shiftwidth=4 tabstop=4 softtabstop=4 expandtab
]]
-- Enable mouse mode, can be useful for resizing splits for example!
vim.opt.mouse = 'a'
-- Don't show the mode, since it's already in the status line
vim.opt.showmode = false
-- greatest remap ever
vim.keymap.set('x', '<leader>p', '"_dP', { desc = '[P]aste' })
-- Sync clipboard between OS and Neovim.
-- Schedule the setting after `UiEnter` because it can increase startup-time.
-- Remove this option if you want your OS clipboard to remain independent.