mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Update nvim, kitty
This commit is contained in:
parent
43b3ba3aaa
commit
e3fa73c712
6 changed files with 33 additions and 43 deletions
|
|
@ -5,6 +5,7 @@ open_url_modifiers ctrl
|
||||||
cursor_blink_interval 0
|
cursor_blink_interval 0
|
||||||
tab_bar_edge bottom
|
tab_bar_edge bottom
|
||||||
tab_bar_style separator
|
tab_bar_style separator
|
||||||
|
tab_separator ""
|
||||||
tab_title_template "{index}: {title}"
|
tab_title_template "{index}: {title}"
|
||||||
|
|
||||||
map ctrl+equal change_font_size all +2
|
map ctrl+equal change_font_size all +2
|
||||||
|
|
@ -32,7 +33,8 @@ color12 #0092ff
|
||||||
color13 #9a5feb
|
color13 #9a5feb
|
||||||
color14 #67fff0
|
color14 #67fff0
|
||||||
color15 #ffffff
|
color15 #ffffff
|
||||||
background #0e1019
|
# background #0e1019
|
||||||
|
background #1e1e1e
|
||||||
selection_foreground #0e1019
|
selection_foreground #0e1019
|
||||||
cursor #ff0018
|
cursor #ff0018
|
||||||
foreground #fffaf4
|
foreground #fffaf4
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,17 @@
|
||||||
|
|
||||||
## Install nvim
|
## Install nvim
|
||||||
```bash
|
```bash
|
||||||
|
# From AUR
|
||||||
yay -S neovim-nightly-bin
|
yay -S neovim-nightly-bin
|
||||||
|
|
||||||
|
# From pacman
|
||||||
|
sudo pacman -S neovim
|
||||||
```
|
```
|
||||||
|
|
||||||
## Install plugin manager(`packer`)
|
## Install plugin manager(`vim-plug`)
|
||||||
|
```bash
|
||||||
|
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
```
|
||||||
|
|
||||||
## Install LSP servers
|
## Install LSP servers
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,23 @@
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
" Plug 'Smirnov-O/nten.vim'
|
Plug 'Smirnov-O/nten.vim'
|
||||||
Plug 'projekt0n/github-nvim-theme'
|
|
||||||
Plug 'hoob3rt/lualine.nvim'
|
Plug 'hoob3rt/lualine.nvim'
|
||||||
Plug 'romgrk/barbar.nvim'
|
Plug 'romgrk/barbar.nvim'
|
||||||
Plug 'b3nj5m1n/kommentary'
|
Plug 'b3nj5m1n/kommentary'
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
Plug 'nvim-lua/plenary.nvim'
|
||||||
|
Plug 'lewis6991/gitsigns.nvim'
|
||||||
|
" LSP
|
||||||
|
Plug 'hrsh7th/nvim-compe'
|
||||||
|
Plug 'neovim/nvim-lspconfig'
|
||||||
|
Plug 'kabouzeid/nvim-lspinstall'
|
||||||
" Files
|
" Files
|
||||||
Plug 'junegunn/fzf.vim', {'on': ['Files', 'GFiles']}
|
Plug 'junegunn/fzf.vim', {'on': ['Files', 'GFiles']}
|
||||||
" Plug 'kyazdani42/nvim-tree.lua', {'on': 'NvimTreeToggle'}
|
|
||||||
" Syntax
|
" Syntax
|
||||||
Plug 'sheerun/vim-polyglot'
|
|
||||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||||
" Completion
|
Plug 'sheerun/vim-polyglot'
|
||||||
Plug 'neovim/nvim-lspconfig'
|
|
||||||
Plug 'hrsh7th/nvim-compe'
|
|
||||||
Plug 'kabouzeid/nvim-lspinstall'
|
|
||||||
" Git
|
|
||||||
Plug 'lewis6991/gitsigns.nvim'
|
|
||||||
" Plug 'TimUntersberger/neogit'
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" colo codedark
|
colo codedark
|
||||||
let mapleader=";"
|
let mapleader=";"
|
||||||
|
|
||||||
"== Config
|
"== Config
|
||||||
|
|
@ -54,7 +50,7 @@ set ts=4 sw=4 sts=4
|
||||||
set sta et ai
|
set sta et ai
|
||||||
|
|
||||||
"== Custom commands
|
"== Custom commands
|
||||||
com! Prettier :sil !prettier -w %
|
com! Prettier :sil !prettier --no-semi -w %
|
||||||
com! Term :vs|winc L|se nonu nornu|start|term
|
com! Term :vs|winc L|se nonu nornu|start|term
|
||||||
com! GoFmt :sil !gofmt -w %
|
com! GoFmt :sil !gofmt -w %
|
||||||
com! Black :sil !black %
|
com! Black :sil !black %
|
||||||
|
|
@ -65,8 +61,7 @@ au FileType javascript,yaml,json setl et ts=2 sw=2 sts=4
|
||||||
au FileType python setl et ts=4 sw=4 sts=4 ai
|
au FileType python setl et ts=4 sw=4 sts=4 ai
|
||||||
autocmd BufReadPost,FileReadPost lua require "lsp_signature".on_attach()
|
autocmd BufReadPost,FileReadPost lua require "lsp_signature".on_attach()
|
||||||
|
|
||||||
|
|
||||||
"== Config's
|
"== Config's
|
||||||
lua require'config'
|
lua require"config"
|
||||||
so $HOME/.config/nvim/vimscript/barbar.vim
|
so $HOME/.config/nvim/vimscript/barbar.vim
|
||||||
so $HOME/.config/nvim/vimscript/mappings.vim
|
so $HOME/.config/nvim/vimscript/mappings.vim
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,10 @@ require"lspconfig".gopls.setup {}
|
||||||
-- require"lspconfig".pyls.setup {}
|
-- require"lspconfig".pyls.setup {}
|
||||||
-- require"lspconfig".rls.setup {}
|
-- require"lspconfig".rls.setup {}
|
||||||
-- require"lspconfig".denols.setup {}
|
-- require"lspconfig".denols.setup {}
|
||||||
require"lspconfig".lua.setup{}
|
-- require"lspconfig".lua.setup{}
|
||||||
require"tsserver"
|
require"tsserver"
|
||||||
require"efm"
|
require"efm"
|
||||||
|
|
||||||
-- Theme
|
|
||||||
require"github-theme".setup {}
|
|
||||||
|
|
||||||
-- Compe
|
-- Compe
|
||||||
require'compe'.setup {
|
require'compe'.setup {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
|
@ -24,7 +21,7 @@ require'compe'.setup {
|
||||||
|
|
||||||
-- LuaLine
|
-- LuaLine
|
||||||
require'lualine'.setup {options={
|
require'lualine'.setup {options={
|
||||||
theme = "github"
|
theme = "codedark"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
-- GitSigns
|
-- GitSigns
|
||||||
|
|
@ -45,15 +42,10 @@ require'gitsigns'.setup {
|
||||||
use_internal_diff = true,
|
use_internal_diff = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
-- NvimTree
|
|
||||||
vim.g.nvim_tree_side = "right"
|
|
||||||
vim.g.nvim_tree_ignore = {".git", ".cache", "node_modules", "__pycache__", "env"}
|
|
||||||
-- vim.g.nvim_tree_auto_close = 0
|
|
||||||
vim.g.nvim_tree_width = 24
|
|
||||||
|
|
||||||
|
|
||||||
-- TreeSitter
|
-- TreeSitter
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
ensure_installed = {'javascript', 'typescript', 'jsdoc', 'python', 'go', 'bash'};
|
ensure_installed = {'javascript', 'typescript', 'jsdoc', 'python', 'go', 'bash'};
|
||||||
highlight = {enable=true};
|
highlight = {
|
||||||
|
enable=true
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ nno <C-s> :w<cr>
|
||||||
nno <C-p> :GFiles<cr>
|
nno <C-p> :GFiles<cr>
|
||||||
nno <C-n> :enew<cr>
|
nno <C-n> :enew<cr>
|
||||||
nno <leader>; :Files<cr>
|
nno <leader>; :Files<cr>
|
||||||
" nno <leader>e :NvimTreeToggle<cr>
|
|
||||||
nno <space> :noh<cr>
|
nno <space> :noh<cr>
|
||||||
|
|
||||||
" Buffer
|
" Buffer
|
||||||
|
|
@ -31,7 +30,7 @@ nno <A-j> :res -3<cr>
|
||||||
nno <A-k> :res +3<cr>
|
nno <A-k> :res +3<cr>
|
||||||
nno <A-l> :vert res -3<cr>
|
nno <A-l> :vert res -3<cr>
|
||||||
|
|
||||||
nno spv :vs<cr>
|
nno spv :vnew<cr>
|
||||||
nno sph :sp<cr>
|
nno sph :new<cr>
|
||||||
nno spk :winc K<cr>
|
nno spk :winc K<cr>
|
||||||
nno spl :winc L<cr>
|
nno spl :winc L<cr>
|
||||||
|
|
|
||||||
11
zshrc
11
zshrc
|
|
@ -3,14 +3,14 @@
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
export GOPATH="$HOME/go"
|
export GOPATH="$HOME/go"
|
||||||
export PATH="$HOME/bin:$HOME/.local/bin:$HOME/.golang/bin:$GOPATH/bin:$PATH"
|
export PATH="$HOME/bin:$HOME/.local/bin:$HOME/.golang/bin:$GOPATH/bin:$HOME/.yarn/bin:$PATH"
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
|
|
||||||
## FzF
|
## FzF
|
||||||
export FZF_DEFAULT_COMMAND="fd -t f -t l -E node_modules -E env -E __pycache__"
|
export FZF_DEFAULT_COMMAND="fd -t f -t l -E node_modules -E env -E __pycache__"
|
||||||
|
|
||||||
## Oh my zsh
|
## Oh my zsh
|
||||||
plugins=(dotenv)
|
plugins=(dotenv yarn node)
|
||||||
ZSH_THEME="simple"
|
ZSH_THEME="simple"
|
||||||
source "$HOME/.oh-my-zsh/oh-my-zsh.sh"
|
source "$HOME/.oh-my-zsh/oh-my-zsh.sh"
|
||||||
|
|
||||||
|
|
@ -20,14 +20,9 @@ eval $(fnm env)
|
||||||
## Aliases
|
## Aliases
|
||||||
alias cls="clear" cp="cp -r" mkdir="mkdir -p"
|
alias cls="clear" cp="cp -r" mkdir="mkdir -p"
|
||||||
alias vim="nvim" vi="vim" e="$EDITOR"
|
alias vim="nvim" vi="vim" e="$EDITOR"
|
||||||
alias ...="cd ../.." .3="cd ../../.." .4="cd ../../../.."
|
alias ...="cd ../.." .3="cd ../../.."
|
||||||
alias gor="go run" gob="go build" gog="go get" goi="go install"
|
alias gor="go run" gob="go build" gog="go get" goi="go install"
|
||||||
alias pac="sudo pacman" pacs="pac -S" pacr="pac -R" pacss="pac -Ss"
|
|
||||||
|
|
||||||
if [[ -f "/bin/exa" ]]; then
|
if [[ -f "/bin/exa" ]]; then
|
||||||
alias ls="exa -l" la="ls -a"
|
alias ls="exa -l" la="ls -a"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|
|
||||||
export SDKMAN_DIR="/home/sasha/.sdkman"
|
|
||||||
[[ -s "/home/sasha/.sdkman/bin/sdkman-init.sh" ]] && source "/home/sasha/.sdkman/bin/sdkman-init.sh"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue