Compare commits

...

32 Commits

Author SHA1 Message Date
Karimullin Arthur b425c4ca3d Обновляем конфиги 2022-11-25 23:10:15 +05:00
Karimullin Arthur 4a6844e14d Обновляем конфиги tmux 2022-11-24 14:05:59 +05:00
Karimullin Arthur d7f01ecd33 Обновляем конфиги 2022-11-24 12:09:03 +05:00
Karimullin Arthur b7477b7307 Обновляем конфиги 2022-11-23 18:31:41 +05:00
Karimullin Arthur 1f29768e79 Обновляем конфиги 2022-11-23 18:31:15 +05:00
Karimullin Arthur 8c2b63ec15 Whaat 2022-11-23 13:32:30 +05:00
Karimullin Arthur 4d90940e70 tmux 2022-11-22 20:11:37 +05:00
Karimullin Arthur f33b5437d0 tmux 2022-11-22 20:10:27 +05:00
Karimullin Arthur 87178b1ca8 Обновляем конфиги 2022-11-22 01:37:08 +05:00
Karimullin Arthur 45365fc8e6 Обновляем конфиги zsh 2022-11-22 01:35:56 +05:00
Karimullin Arthur f348067ba4 Обновляем конфиги 2022-11-22 01:34:33 +05:00
Karimullin Arthur 5284e1b5af Обновляем конфиги 2022-11-22 01:26:41 +05:00
Karimullin Arthur e6fd27a59d Обновляем конфиги 2022-11-20 21:43:23 +05:00
Karimullin Arthur 2fed4f42d3 Обновляем конфиги 2022-11-20 21:42:03 +05:00
Karimullin Arthur 5874dbce06 Обновляем конфиги 2022-11-20 21:38:57 +05:00
Karimullin Arthur 0ebf7aef3f Обновляем конфиги tmux time and data on bar 2022-11-11 19:29:48 +05:00
Karimullin Arthur e6a1148fdd Обновляем конфиги 2022-11-08 19:44:03 +05:00
Karimullin Arthur 4442d8f383 Обновляем конфиги 2022-11-07 01:18:30 +05:00
Karimullin Arthur 9852279256 Обновляем конфиги nvim 2022-11-06 00:25:11 +05:00
Karimullin Arthur 924fb8a1ac update 2022-11-05 23:21:04 +05:00
Karimullin Arthur 451dfbf98b fuck, waht my termux, oh I'm fat cock. 2022-11-05 19:27:32 +05:00
Karimullin Arthur 1ba27a2acc Обновляем конфиги 2022-11-02 23:15:33 +05:00
Karimullin Arthur 516d776a8c Обновляем конфиги 2022-08-12 19:40:46 +05:00
Karimullin Arthur 06af0d243f Обновляем конфиги 2022-07-21 22:57:17 +05:00
Karimullin Arthur ddd852fd53 Обновляем конфиги test bash 2022-06-10 23:49:28 +05:00
Karimullin Arthur feafec8734 Обновляем конфиги link install Plub nivm 2022-06-09 23:09:07 +05:00
Karimullin Arthur 93e2889cc2 vim -> nvim 2022-06-09 22:46:51 +05:00
Karimullin Arthur 37fb93bfb0 Обновляем конфиги tmux 2022-06-09 14:17:06 +05:00
Karimullin Arthur 19d4f27e12 Обновляем конфиги vim in termux 2022-06-09 14:08:51 +05:00
Karimullin Arthur 0781107a3b Обновляем конфиги start termux 2022-06-09 13:52:37 +05:00
Karimullin Arthur a3d6c7e199 Обновляем конфиги start termux 2022-06-09 13:49:42 +05:00
Karimullin Arthur e804b7c9d1 Обновляем конфиги start termux 2022-06-09 13:48:14 +05:00
14 changed files with 2614 additions and 145 deletions

2057
.antigen.zsh Normal file

File diff suppressed because it is too large Load Diff

130
.bashrc
View File

@ -11,119 +11,6 @@
#|____/ \___|_| \__,_|\__,_|_|\__|
#
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
alias ll='ls -alhF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# __ __
#| \/ |_ _
#| |\/| | | | |
@ -143,19 +30,22 @@ bind -m vi-command '"\C-i":complete'
bind -m vi-command '"\C-i":complete'
#Алиасы
alias pg-start="pg_ctl -D $PREFIX/var/lib/postgresql start"
alias pg-stop="pg_ctl -D $PREFIX/var/lib/postgresql stop"
alias emacs="emacs -nw"
alias w3m="w3m -o auto_image=FALSE"
alias w3m-image="w3m -o auto_image=TRUE"
alias get="termux-clipboard-get"
#Добавляем свой /bin в домашней директории
export PATH=~/bin:"$PATH"
#Китти в ссш
alias ssh="kitty +kitten ssh"
#Дефолтный редактор - вим
export EDITOR=vim
#Дефолтный редактор - neovim
export EDITOR=nvim
#ipdb & pdb
alias pdb="python3 -m pdb"
@ -165,4 +55,6 @@ alias ipdb="python3 -m ipdb"
alias du="du -h"
#Забавы ради
figlet Linux Is POWER | lolcat
figlet Termux
tmux >> /dev/null 2>&1

View File

@ -190,14 +190,14 @@ tmux_conf_theme_window_status_last_bg="$tmux_conf_theme_colour_2"
tmux_conf_theme_window_status_last_attr="none"
# status left/right sections separators
tmux_conf_theme_left_separator_main=""
tmux_conf_theme_left_separator_sub="|"
tmux_conf_theme_right_separator_main=""
tmux_conf_theme_right_separator_sub="|"
#tmux_conf_theme_left_separator_main='\uE0B0' # /!\ you don't need to install Powerline
#tmux_conf_theme_left_separator_sub='\uE0B1' # you only need fonts patched with
#tmux_conf_theme_right_separator_main='\uE0B2' # Powerline symbols or the standalone
#tmux_conf_theme_right_separator_sub='\uE0B3' # PowerlineSymbols.otf font, see README.md
#tmux_conf_theme_left_separator_main=""
#tmux_conf_theme_left_separator_sub="|"
#tmux_conf_theme_right_separator_main=""
#tmux_conf_theme_right_separator_sub="|"
tmux_conf_theme_left_separator_main='\uE0B0' # /!\ you don't need to install Powerline
tmux_conf_theme_left_separator_sub='\uE0B1' # you only need fonts patched with
tmux_conf_theme_right_separator_main='\uE0B2' # Powerline symbols or the standalone
tmux_conf_theme_right_separator_sub='\uE0B3' # PowerlineSymbols.otf font, see README.md
# status left/right content:
# - separate main sections with "|"
@ -227,7 +227,9 @@ tmux_conf_theme_right_separator_sub="|"
# - #{username}
# - #{username_ssh}
tmux_conf_theme_status_left=" ❐ #S "
tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized}#{?battery_status,#{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username} #{root}"
# Def
tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized}#{?battery_status,#{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b "
# status left style
tmux_conf_theme_status_left_fg="$tmux_conf_theme_colour_6,$tmux_conf_theme_colour_7,$tmux_conf_theme_colour_8"

24
.vimrc
View File

@ -7,11 +7,6 @@ set tabstop=4
set number
"Плигины
"Install PlugInstall
"curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
call plug#begin('~/.vim/plugged')
"Plug 'ErichDonGubler/vim-sublime-monokai'
Plug 'flazz/vim-colorschemes'
@ -20,29 +15,28 @@ Plug 'xolox/vim-colorscheme-switcher'
Plug 'scrooloose/nerdtree'
call plug#end()
"Collor Scheme
colorscheme up
set t_ut=""
"latex
imap <F6> <Esc>:w<CR>:!pdflatex %<CR>
nmap <F6> <Esc>:w<CR>:!pdflatex %<CR>
"Хоткеи для петухона
imap <F5> <Esc>:w<CR>:!clear;python3 %<CR>
nmap <F5> <Esc>:w<CR>:!clear;python3 %<CR>
cnoreabbrev python !clear;python3 %
"FileBar
"nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
"nnoremap <C-t> :NERDTreeToggle<CR>
"nnoremap <C-f> :NERDTreeFind<CR>
let NERDTreeQuitOnOpen=1
"colorscheme sublimemonokai "Цветовая схема
set timeoutlen=1000 ttimeoutlen=0 "Задержки при visual block insetr
set keymap=russian-jcukenwin
set iminsert=0
set imsearch=0
inoremap <C-l> <C-^>
"set keymap=russian-jcukenwin
"set iminsert=0
"set imsearch=0
"inoremap <C-l> <C-^>

31
.zshrc Normal file
View File

@ -0,0 +1,31 @@
source ~/.antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
antigen bundle gitantigen bundle agkozak/zsh-z
antigen bundle heroku
antigen bundle pip
antigen bundle lein
antigen bundle command-not-found
antigen bundle postgres
antigen bundle zsh-users/zsh-syntax-highlighting
antigen theme agnoster
antigen apply If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
#export PATH=~/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/games
# General
set -o vi
# Fun
figlet "Termux"
# Other
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}

21
nvim/auto-save.lua Normal file
View File

@ -0,0 +1,21 @@
require("auto-save").setup({
enabled = true,
execution_message = {
message = function() -- message to print on save
return ("AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S"))
end,
dim = 0.18, -- dim the color of `message`
cleaning_interval = 1250, -- (milliseconds) automatically clean MsgArea after displaying `message`. See :h MsgArea
},
events = {"InsertLeave", "TextChanged"},
conditions = {
exists = true,
filename_is_not = {},
filetype_is_not = {},
modifiable = true
},
write_all_buffers = false,
on_off_commands = true,
clean_command_line_interval = 0,
debounce_delay = 135,
})

71
nvim/cmp.lua Normal file
View File

@ -0,0 +1,71 @@
-- Set up nvim-cmp.
local cmp = require'cmp'
cmp.setup({
completion = {
autocomplete = false
},
snippet = {
-- REQUIRED - you must specify a snippet engine
expand = function(args)
vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
-- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
-- require('snippy').expand_snippet(args.body) -- For `snippy` users.
-- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users.
end,
},
window = {
-- completion = cmp.config.window.bordered(),
-- documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'vsnip' }, -- For vsnip users.
-- { name = 'luasnip' }, -- For luasnip users.
-- { name = 'ultisnips' }, -- For ultisnips users.
-- { name = 'snippy' }, -- For snippy users.
}, {
{ name = 'buffer' },
})
})
-- Set configuration for specific filetype.
cmp.setup.filetype('gitcommit', {
sources = cmp.config.sources({
{ name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
}, {
{ name = 'buffer' },
})
})
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline({ '/', '?' }, {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = 'buffer' }
}
})
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = 'path' }
}, {
{ name = 'cmdline' }
})
})
-- Set up lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities()
-- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
require('lspconfig')['pylsp'].setup {
capabilities = capabilities
}

142
nvim/init.vim Normal file
View File

@ -0,0 +1,142 @@
set mouse=a
set encoding=utf-8
set number
set fileformat=unix
set noswapfile
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
set tabstop=2
set expandtab
set shiftwidth=2
set iskeyword-=_
au Filetype python setl et ts=4 sw=4
au Filetype html setl ts=2 sw=2
nnoremap ,<space> :nohlsearch<CR>
autocmd FileType python set colorcolumn=79
" Хоткеи для петухона
imap <F5> <Esc>:w<CR>:term python3 %<CR>
nmap <F5> <Esc>:w<CR>:term python3 %<CR>
cnoreabbrev pyt :term python3 %
" йцукен
set keymap=russian-jcukenwin
inoremap <C-l> <C-^>
set iminsert=0 " Set defualt qwerty
" tabs
nnoremap <silent> tn <Cmd>:tabnext<CR>
nnoremap <silent> tp <Cmd>:tabprevious <CR>
set guifont=AgaveMono\ Nerd\ Font\ 11
" Плигины
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim')) "Если vim-plug не стоит
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs "Создать директорию
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'williamboman/nvim-lsp-installer'
Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'saadparwaiz1/cmp_luasnip'
Plug 'L3MON4D3/LuaSnip'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-path'
Plug 'hrsh7th/cmp-cmdline'
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/vim-vsnip'
Plug 'Pocco81/auto-save.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.0' }
Plug 'scrooloose/nerdtree'
Plug 'echasnovski/mini.nvim'
Plug 'ryanoasis/vim-devicons'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'morhetz/gruvbox'
call plug#end()
" Цветовая схема
let g:gruvbox_italic = 1
colorscheme gruvbox
" Find files using Telescope command-line sugar.
nnoremap ,ff <cmd>Telescope find_files<cr>
nnoremap ,fg <cmd>Telescope live_grep<cr>
nnoremap ,fb <cmd>Telescope buffers<cr>
nnoremap ,fh <cmd>Telescope help_tags<cr>
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
let NERDTreeQuitOnOpen=1
let NERDTreeShowHidden=1
" Function to open the file or NERDTree or netrw.
" Returns: 1 if either file explorer was opened; otherwise, 0.
function! s:OpenFileOrExplorer(...)
if a:0 == 0 || a:1 == ''
NERDTree
elseif filereadable(a:1)
execute 'edit '.a:1
return 0
elseif a:1 =~? '^\(scp\|ftp\)://' " Add other protocols as needed.
execute 'Vexplore '.a:1
elseif isdirectory(a:1)
execute 'NERDTree '.a:1
endif
return 1
endfunction
" Auto commands to handle OS commandline arguments
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc()==1 && !exists('s:std_in') | if <SID>OpenFileOrExplorer(argv()[0]) | wincmd p | enew | wincmd p | endif | endif
" Command to call the OpenFileOrExplorer function.
command! -n=? -complete=file -bar Edit :call <SID>OpenFileOrExplorer('<args>')
" Command-mode abbreviation to replace the :edit Vim command.
cnoreabbrev e Edit
" Main init in lua
source ~/.config/nvim/main.lua
" CMP & LSP
" Ctrl + Space for activate cmp
source ~/.config/nvim/cmp.lua
set completeopt=menu,menuone,noselect
" LSP
source ~/.config/nvim/lsp.lua
" Telescope
source ~/.config/nvim/telescope.lua
" Auto save
source ~/.config/nvim/auto-save.lua
" Treesitter
source ~/.config/nvim/treesitter.lua

42
nvim/lsp.lua Normal file
View File

@ -0,0 +1,42 @@
-- Mappings.
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
local opts = { noremap=true, silent=true }
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, opts)
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts)
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts)
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist, opts)
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
local on_attach = function(client, bufnr)
-- Enable completion triggered by <c-x><c-o>
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
-- Mappings.
-- See `:help vim.lsp.*` for documentation on any of the below functions
local bufopts = { noremap=true, silent=true, buffer=bufnr }
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, bufopts)
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts)
vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts)
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, bufopts)
vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, bufopts)
vim.keymap.set('n', '<space>wa', vim.lsp.buf.add_workspace_folder, bufopts)
vim.keymap.set('n', '<space>wr', vim.lsp.buf.remove_workspace_folder, bufopts)
vim.keymap.set('n', '<space>wl', function()
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end, bufopts)
vim.keymap.set('n', '<space>D', vim.lsp.buf.type_definition, bufopts)
vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, bufopts)
vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, bufopts)
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
vim.keymap.set('n', '<space>f', function() vim.lsp.buf.format { async = true } end, bufopts)
end
local lsp_flags = {
-- This is the default in Nvim 0.7+
debounce_text_changes = 150,
}
require('lspconfig')['pylsp'].setup{
on_attach = on_attach,
flags = lsp_flags,
}

136
nvim/main.lua Normal file
View File

@ -0,0 +1,136 @@
local header_art2 =
[[
]]
local header_art =
[[
]]
-- using the mini plugins
require('mini.sessions').setup({
-- Whether to read latest session if Neovim opened without file arguments
autoread = false,
-- Whether to write current session before quitting Neovim
autowrite = false,
-- Directory where global sessions are stored (use `''` to disable)
directory = '~/.vim/sessions', --<"session" subdir of user data directory from |stdpath()|>,
-- File for local session (use `''` to disable)
file = '' -- 'Session.vim',
})
local starter = require('mini.starter')
starter.setup({
-- evaluate_single = true,
items = {
starter.sections.sessions(77, true),
starter.sections.builtin_actions(),
},
content_hooks = {
function(content)
local blank_content_line = { { type = 'empty', string = '' } }
local section_coords = starter.content_coords(content, 'section')
-- Insert backwards to not affect coordinates
for i = #section_coords, 1, -1 do
table.insert(content, section_coords[i].line + 1, blank_content_line)
end
return content
end,
starter.gen_hook.adding_bullet("» "),
starter.gen_hook.aligning('center', 'center'),
},
header = header_art,
footer = '',
})
require("nvim-lsp-installer").setup({
automatic_installation = true, -- automatically detect which servers to install (based on which servers are set up via lspconfig)
ui = {
icons = {
server_installed = "",
server_pending = "",
server_uninstalled = ""
}
}
})
local DEFAULT_SETTINGS = {
-- A list of servers to automatically install if they're not already installed. Example: { "rust_analyzer", "sumneko_lua" }
-- This setting has no relation with the `automatic_installation` setting.
ensure_installed = {},
-- Whether servers that are set up (via lspconfig) should be automatically installed if they're not already installed.
-- This setting has no relation with the `ensure_installed` setting.
-- Can either be:
-- - false: Servers are not automatically installed.
-- - true: All servers set up via lspconfig are automatically installed.
-- - { exclude: string[] }: All servers set up via lspconfig, except the ones provided in the list, are automatically installed.
-- Example: automatic_installation = { exclude = { "rust_analyzer", "solargraph" } }
automatic_installation = false,
ui = {
-- Whether to automatically check for outdated servers when opening the UI window.
check_outdated_servers_on_open = true,
-- The border to use for the UI window. Accepts same border values as |nvim_open_win()|.
border = "none",
icons = {
-- The list icon to use for installed servers.
server_installed = "",
-- The list icon to use for servers that are pending installation.
server_pending = "",
-- The list icon to use for servers that are not installed.
server_uninstalled = "",
},
keymaps = {
-- Keymap to expand a server in the UI
toggle_server_expand = "<CR>",
-- Keymap to install the server under the current cursor position
install_server = "i",
-- Keymap to reinstall/update the server under the current cursor position
update_server = "u",
-- Keymap to check for new version for the server under the current cursor position
check_server_version = "c",
-- Keymap to update all installed servers
update_all_servers = "U",
-- Keymap to check which installed servers are outdated
check_outdated_servers = "C",
-- Keymap to uninstall a server
uninstall_server = "X",
},
},
pip = {
-- These args will be added to `pip install` calls. Note that setting extra args might impact intended behavior
-- and is not recommended.
--
-- Example: { "--proxy", "https://proxyserver" }
install_args = {},
},
-- Controls to which degree logs are written to the log file. It's useful to set this to vim.log.levels.DEBUG when
-- debugging issues with server installations.
log_level = vim.log.levels.INFO,
-- Limit for the maximum amount of servers to be installed at the same time. Once this limit is reached, any further
-- servers that are requested to be installed will be put in a queue.
max_concurrent_installers = 4,
github = {
-- The template URL to use when downloading assets from GitHub.
-- The placeholders are the following (in order):
-- 1. The repository (e.g. "rust-lang/rust-analyzer")
-- 2. The release version (e.g. "v0.3.0")
-- 3. The asset name (e.g. "rust-analyzer-v0.3.0-x86_64-unknown-linux-gnu.tar.gz")
download_url_template = "https://github.com/%s/releases/download/%s/%s",
},
}

30
nvim/telescope.lua Normal file
View File

@ -0,0 +1,30 @@
require('telescope').setup{
defaults = {
-- Default configuration for telescope goes here:
-- config_key = value,
mappings = {
i = {
-- map actions.which_key to <C-h> (default: <C-/>)
-- actions.which_key shows the mappings for your picker,
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
["<C-h>"] = "which_key"
}
}
},
pickers = {
-- Default configuration for builtin pickers goes here:
-- picker_name = {
-- picker_config_key = value,
-- ...
-- }
-- Now the picker_config_key will be applied every time you call this
-- builtin picker
},
extensions = {
-- Your extension configuration goes here:
-- extension_name = {
-- extension_config_key = value,
-- }
-- please take a look at the readme of the extension you want to configure
}
}

42
nvim/treesitter.lua Normal file
View File

@ -0,0 +1,42 @@
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all"
ensure_installed = { "python", "rust" },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
-- Automatically install missing parsers when entering buffer
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
auto_install = true,
-- List of parsers to ignore installing (for "all")
ignore_install = { "javascript"},
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
highlight = {
-- `false` will disable the whole extension
enable = true,
-- NOTE: these are the names of the parsers and not the filetype. (for example if you want to
-- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
-- the name of the parser)
-- list of language that will be disabled
disable = { "c" },
-- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files
disable = function(lang, buf)
local max_filesize = 100 * 1024 -- 100 KB
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
if ok and stats and stats.size > max_filesize then
return true
end
end,
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = true,
},
}

View File

@ -1,12 +1,13 @@
#!/bin/bash
path=~/code/gitRepo/my/myConfigs #Path to local repo
path=~/.config/myConfigs #Path to local repo
cd $path
echo 'Введи коменратий к коммиту'
read comment
git switch termux
git add .
git commit -m "Обновляем конфиги $comment"
git push origin master
git push origin termux

8
setup Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/bash
mkdir ~/.config/nvim
cd ~/.config/nvim/
ln -s ~/.config/myConfigs/init.vim
cd ~/
ln -s ~/.config/myConfigs/.bashrc