diff options
-rwxr-xr-x | install | 1 | ||||
-rw-r--r-- | vim/ftplugin/nix.vim | 5 | ||||
-rw-r--r-- | vim/ftplugin/python.vim | 3 | ||||
-rw-r--r-- | vim/ftplugin/sh.vim | 1 | ||||
-rw-r--r-- | vimrc | 12 |
5 files changed, 17 insertions, 5 deletions
@@ -74,6 +74,7 @@ if ask "dev" "Development tools configuration"; then inst config/mypy/ ~/.config/mypy inst local/bin/new-flake-dev ~/.local/bin/new-flake-dev inst shvcli.ini ~/.shvcli.ini + curl "https://github.com/cyrus-and/gdb-dashboard/raw/master/.gdbinit" > ~/.gdbinit fi if ask "sync" "Install synchronization"; then diff --git a/vim/ftplugin/nix.vim b/vim/ftplugin/nix.vim new file mode 100644 index 0000000..3808c31 --- /dev/null +++ b/vim/ftplugin/nix.vim @@ -0,0 +1,5 @@ +let b:ale_linters = ['nix', 'rnix_lsp', 'statix'] +let b:ale_fixers = ['alejandra', 'remove_trailing_lines', 'trim_whitespace'] + +nmap <F8> :ALENext<cr> +nmap <F7> :ALEPrevious<cr> diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim index c854e6e..55e7692 100644 --- a/vim/ftplugin/python.vim +++ b/vim/ftplugin/python.vim @@ -1,5 +1,2 @@ -setlocal colorcolumn=88 -setlocal textwidth=88 - let b:ale_linters = ['pylsp', 'pylint', 'mypy', 'pydocstyle'] let b:ale_fixers = ['isort', 'black', 'remove_trailing_lines', 'trim_whitespace'] diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim index 8b70524..8cc42e2 100644 --- a/vim/ftplugin/sh.vim +++ b/vim/ftplugin/sh.vim @@ -1 +1,2 @@ let b:ale_linters = ['shell', 'shellcheck'] +let b:ale_fixers = ['shfmt', 'trim_whitespace', 'remove_trailing_lines'] @@ -200,8 +200,16 @@ let g:UltiSnipsJumpForwardTrigger='<c-j>' let g:UltiSnipsJumpBackwardTrigger='<c-k>' " ALE bidings -nmap <leader>[ <Plug>(ale_go_to_definition) -nmap <leader>] <Plug>(ale_go_to_definition_in_tab) +nmap <leader>] <Plug>(ale_go_to_definition_in_split) +nmap <leader>[ <Plug>(ale_go_to_implementation_in_split) +nmap <leader>[ <Plug>(ale_go_to_type_definition_in_split) +nmap <leader>f <Plug>(ale_fix) + +" Copy line location +" TODO this should work but it doesn't for some reason +" nmap <leader><leader>c :let @+=expand("%:p") . ":" . line(".")<cr> +nmap <leader><leader>c :exec "!wl-copy '" . expand("%:p") . ":" . line(".") . "'"<cr><cr> + " LanguageTool let g:grammarous#languagetool_cmd = 'languagetool' |