add nvim-lsp, docker aliases

This commit is contained in:
aduhayon 2022-07-29 18:02:14 +02:00
parent dc391f7d87
commit e4d4f2b371
11 changed files with 27 additions and 9 deletions

View File

@ -67,7 +67,7 @@ window:
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
opacity: 0.9
opacity: 0.8
# Startup Mode (changes require restart)

View File

@ -316,7 +316,7 @@ globalkeys = gears.table.join(
{},
"XF86AudioRaiseVolume",
function()
awful.spawn("set-vol +2")
awful.spawn("set-vol +5")
end,
{description = "raise volume", group = "shortcut"}
),
@ -324,7 +324,7 @@ globalkeys = gears.table.join(
{},
"XF86AudioLowerVolume",
function()
awful.spawn("set-vol -2")
awful.spawn("set-vol -5")
end,
{description = "lower volume", group = "shortcut"}
),

View File

@ -1,5 +1,8 @@
" variables
let g:black_linelength=79
" plugins
lua require'lspconfig'.pyright.setup{}
" keybindings
nnoremap <C-f> :Black<CR>

View File

@ -14,15 +14,24 @@ set suffixes+=.pyc
set foldmethod=indent
set nofoldenable
set foldlevel=99
set grepprg=grep\ -rn\ $*
set listchars=tab:>\ ,multispace:\|⋅⋅⋅,trail:⋅,nbsp:+
au BufWrite * :%s/\s\+$//e
" packages
so ~/.config/nvim/epitech_header.vim
packadd! nvim-treesitter
lua require('nvim-treesitter.configs').setup{highlight = {enable = true}}
packadd! black
packadd! nvim-lspconfig
packadd! nvim-lsp-installer
lua require("nvim-lsp-installer").setup{}
" keybindings
nnoremap <C-c><C-h> :Header<CR>
@ -32,3 +41,7 @@ nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
nnoremap gf gF
lua vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts)

@ -0,0 +1 @@
Subproject commit b8c168ccb30529a11404e5f71525502ec6288ccf

@ -1 +1 @@
Subproject commit 347947355ba0a15d803cbd61b18f8bb8f401c793
Subproject commit 60f2993b9661d9844cee3bebdbd1b5860577eb3c

@ -1 +1 @@
Subproject commit 36830c4ce838f4e7b19d95d6099af1311f618c26
Subproject commit 0d7fab0c3323ed2e50ccdf14fd24fbbad664f7b1

@ -1 +1 @@
Subproject commit 249c708ed3a4a7a63d16a6e911a46b6fb9623cbd
Subproject commit aa75eeea3348b906f2016be0e44335889e0faed1

View File

@ -8,6 +8,3 @@ alias startgui='startx'
alias umnt='sudo umount /mnt -R'
alias vi="$EDITOR"
alias tmp="cd $(mktemp -d)"
alias k="kubectl"
alias dc=docker-compose

View File

@ -102,3 +102,4 @@ eval "$(pyenv init -)"
pyenv shell 3.10.5
. "$ZDOTDIR"/.zsh_aliases
. "$ZDOTDIR"/.kubectl_aliases
. "$ZDOTDIR"/.docker_aliases

3
.gitmodules vendored
View File

@ -7,3 +7,6 @@
[submodule ".config/zsh/.oh-my-zsh"]
path = .config/zsh/.oh-my-zsh
url = https://github.com/ohmyzsh/ohmyzsh.git
[submodule ".config/nvim/pack/plugins/opt/nvim-lsp-installer"]
path = .config/nvim/pack/plugins/opt/nvim-lsp-installer
url = https://github.com/williamboman/nvim-lsp-installer.git