mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update nvim, bspwm
This commit is contained in:
parent
eb4f1a5b5a
commit
a01c2ab92c
14 changed files with 102 additions and 130 deletions
|
|
@ -11,84 +11,42 @@ call plug#begin('~/.vim/plugged')
|
|||
Plug 'lewis6991/gitsigns.nvim'
|
||||
" Theme
|
||||
Plug 'Smirnov-O/nten.vim'
|
||||
" Status line & Buffer line
|
||||
" Status line && Tab line
|
||||
Plug 'hoob3rt/lualine.nvim'
|
||||
Plug 'romgrk/barbar.nvim'
|
||||
" Better syntax hl
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
Plug 'norcalli/nvim-colorizer.lua'
|
||||
" Editor config
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
" Other
|
||||
Plug 'vimwiki/vimwiki'
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
call plug#end()
|
||||
|
||||
colo nvcode
|
||||
colo codedark
|
||||
let mapleader=";"
|
||||
|
||||
"== Tab(or spaces)
|
||||
set ts=4 sw=4 sts=4
|
||||
set sta et ai
|
||||
|
||||
"== Vim config
|
||||
source $HOME/.config/nvim/vimscript/config.vim
|
||||
|
||||
"== Tab line
|
||||
source $HOME/.config/nvim/vimscript/barbar.vim
|
||||
|
||||
"== Status line
|
||||
luafile $HOME/.config/nvim/lua/n-lualine.lua
|
||||
|
||||
"== File explorer
|
||||
luafile $HOME/.config/nvim/lua/n-nvimtree.lua
|
||||
|
||||
"== Git
|
||||
luafile $HOME/.config/nvim/lua/n-gitsigns.lua
|
||||
|
||||
"== Emmet
|
||||
source $HOME/.config/nvim/vimscript/emmet.vim
|
||||
|
||||
"== Colorizer
|
||||
luafile $HOME/.config/nvim/lua/n-colorizer.lua
|
||||
|
||||
"== Notes
|
||||
let g:vimwiki_list = [{'path': '~/notes', 'syntax': 'markdown', 'ext': '.md'}]
|
||||
|
||||
"== Completion(LSP)
|
||||
ino <expr> <tab> pumvisible() ? "\<C-n>" : "\<tab>"
|
||||
ino <expr> <s-tab> pumvisible() ? "\<C-p>" : "\<tab>"
|
||||
ino <expr> <cr> compe#confirm('<CR>')
|
||||
nno sr :lua vim.lsp.buf.rename()<cr>
|
||||
nno sh :lua vim.lsp.buf.hover()<cr>
|
||||
nno si :lua vim.lsp.buf.definition()<cr>
|
||||
nno sa :lua vim.lsp.buf.code_action()<cr>
|
||||
|
||||
lua << EOF
|
||||
require'lspconfig'.tsserver.setup{}
|
||||
require'lspconfig'.gopls.setup{}
|
||||
require'compe'.setup{
|
||||
enabled = true,
|
||||
autocomplete = true,
|
||||
source = {
|
||||
path = true,
|
||||
buffer = true,
|
||||
nvim_lsp = true,
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
|
||||
"== Custom setting for another files
|
||||
au FileType python,elm setl sw=4 ts=4
|
||||
au FileType javascript,json,yaml,lua setl sw=2 ts=2
|
||||
au FileType javascript,vue,html,css,scss :EmmetInstall
|
||||
au FileType go setl noet sw=4 ts=4
|
||||
|
||||
"== Custom commands
|
||||
com! Prettier :sil !prettier -w %
|
||||
com! Term :vs|winc L|se nonu nornu|start|term
|
||||
com! Notes :Files ~/notes
|
||||
com! GoFmt :sil !gofmt -w %
|
||||
|
||||
"== Mapping
|
||||
"== Configs
|
||||
source $HOME/.config/nvim/vimscript/config.vim
|
||||
source $HOME/.config/nvim/vimscript/barbar.vim
|
||||
source $HOME/.config/nvim/vimscript/emmet.vim
|
||||
source /home/sasha/.config/nvim/vimscript/compe.vim
|
||||
source $HOME/.config/nvim/vimscript/mappings.vim
|
||||
luafile $HOME/.config/nvim/lua/n-compe.lua
|
||||
luafile $HOME/.config/nvim/lua/n-lualine.lua
|
||||
luafile $HOME/.config/nvim/lua/n-nvimtree.lua
|
||||
luafile $HOME/.config/nvim/lua/n-gitsigns.lua
|
||||
luafile $HOME/.config/nvim/lua/n-colorizer.lua
|
||||
|
||||
"== Custom setting for another files
|
||||
au FileType python,elm setl sw=4 ts=4 sts=2
|
||||
au FileType javascript,html,vue,jst,pug,css,less,scss,json,yaml,lua setl sw=2 ts=2 sts=2
|
||||
au FileType go setl noet sw=4 ts=4 sts=2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue