fix zsh, add postman, new neovim settings
This commit is contained in:
parent
d657c43851
commit
b21ea374b1
3 changed files with 24 additions and 4 deletions
|
|
@ -50,16 +50,25 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Environment variables that will be set for zsh session.
|
# Environment variables that will be set for zsh session.
|
||||||
sessionVariables = {
|
# sessionVariables = {
|
||||||
HISTORY_SUBSTRING_SEARCH_FUZZY = "не работает блять"; # Нечёткий поиск для стрелок вверх/вниз.
|
# };
|
||||||
};
|
|
||||||
|
|
||||||
# Extra commands that should be added to .zshrc
|
# Extra commands that should be added to .zshrc
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
source ${pkgs.zsh-you-should-use}/share/zsh/plugins/you-should-use/you-should-use.plugin.zsh
|
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
|
oh-my-zsh = { # https://github.com/ohmyzsh/ohmyzsh
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -186,6 +186,7 @@
|
||||||
taplo # TOML LSP
|
taplo # TOML LSP
|
||||||
vim-language-server # VimScript LSP
|
vim-language-server # VimScript LSP
|
||||||
go-migrate # Database migrations. CLI and Golang library
|
go-migrate # Database migrations. CLI and Golang library
|
||||||
|
postman # API Development Environment
|
||||||
|
|
||||||
# For nvim
|
# For nvim
|
||||||
tree-sitter # For nvim
|
tree-sitter # For nvim
|
||||||
|
|
|
||||||
|
|
@ -20,15 +20,25 @@ vim.opt.relativenumber = true
|
||||||
-- Табуляция в 4 символа
|
-- Табуляция в 4 символа
|
||||||
vim.opt.tabstop = 4
|
vim.opt.tabstop = 4
|
||||||
vim.opt.shiftwidth = 4
|
vim.opt.shiftwidth = 4
|
||||||
|
vim.opt.softtabstop = 4
|
||||||
-- Юзать пробелы вместо табов
|
-- Юзать пробелы вместо табов
|
||||||
vim.opt.expandtab = true
|
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!
|
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||||
vim.opt.mouse = 'a'
|
vim.opt.mouse = 'a'
|
||||||
|
|
||||||
-- Don't show the mode, since it's already in the status line
|
-- Don't show the mode, since it's already in the status line
|
||||||
vim.opt.showmode = false
|
vim.opt.showmode = false
|
||||||
|
|
||||||
|
-- greatest remap ever
|
||||||
|
vim.keymap.set('x', '<leader>p', '"_dP', { desc = '[P]aste' })
|
||||||
|
|
||||||
-- Sync clipboard between OS and Neovim.
|
-- Sync clipboard between OS and Neovim.
|
||||||
-- Schedule the setting after `UiEnter` because it can increase startup-time.
|
-- Schedule the setting after `UiEnter` because it can increase startup-time.
|
||||||
-- Remove this option if you want your OS clipboard to remain independent.
|
-- Remove this option if you want your OS clipboard to remain independent.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue