From 81f34273a997b7a319598b2622ac15530d8dc534 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Sun, 10 Jul 2022 18:15:05 -0400 Subject: routine updates --- coc/.config/coc/extensions/package.json | 9 +++++---- nvim/.config/nvim/coc-settings.json | 7 ++++++- nvim/.config/nvim/init.vim | 7 +++++-- zsh/.zshrc | 4 ++-- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/coc/.config/coc/extensions/package.json b/coc/.config/coc/extensions/package.json index 3365eee..3dd63c7 100644 --- a/coc/.config/coc/extensions/package.json +++ b/coc/.config/coc/extensions/package.json @@ -1,9 +1,10 @@ { "dependencies": { - "@yaegassy/coc-ansible": ">=0.4.0", - "@yaegassy/coc-pylsp": ">=0.5.0", + "@yaegassy/coc-ansible": ">=0.6.1", + "@yaegassy/coc-pylsp": ">=0.6.1", "coc-json": ">=1.4.1", - "coc-snippets": ">=2.4.7", - "coc-tsserver": ">=1.9.9" + "coc-pydocstring": ">=0.8.2", + "coc-snippets": ">=3.0.8", + "coc-tsserver": ">=1.10.0" } } \ No newline at end of file diff --git a/nvim/.config/nvim/coc-settings.json b/nvim/.config/nvim/coc-settings.json index fadc705..4361d90 100644 --- a/nvim/.config/nvim/coc-settings.json +++ b/nvim/.config/nvim/coc-settings.json @@ -6,6 +6,11 @@ "ansible.ansibleLint.enabled": true, "snippets.snipmate.enable": false, "pylsp.plugins.pycodestyle.enabled": false, + "pylsp.plugins.pyflakes.enabled": false, "pylsp.plugins.pylint.enabled": true, - "pylsp.plugins.pylint.args": ["--rcfile=~/kepler/python/kepler/.pylintrc"] + "pylsp.plugins.pylint.args": ["--rcfile=/home/kdam0/kepler/kepler/python/kepler/.pylintrc"], + "pylsp.builtin.enableInstallPylspMypy": true, + "pylsp.builtin.pylspMypyVersion": "0.961", + "pylsp.plugins.pydocstyle.enabled": true, + "pydocstring.enable": true } diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index da0fcb0..32adf25 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -43,8 +43,8 @@ call plug#end() " highlight NonText ctermfg=yellow guifg=yellow set noswapfile set encoding=utf-8 - set number - set relativenumber + " set number + " set relativenumber "set cursorline let mapleader = "," set pastetoggle=v @@ -168,6 +168,7 @@ call plug#end() map g :ProjectFiles map f :Files + map b :Buffers " Turns off highlighting on the bits of code that are changed, so the line that is changed is highlighted but the actual text that has changed stands out on the line and is readable. @@ -200,6 +201,8 @@ call plug#end() highlight CocErrorHighlight ctermfg=Red guifg=#ff0000 highlight CocFloating ctermbg=Black nmap ga (coc-codeaction-line) + xmap ga (coc-codeaction-selected) + nmap gA (coc-codeaction) imap (coc-snippets-expand) " Use for jump to next placeholder, it's default of coc.nvim let g:coc_snippet_next = '' diff --git a/zsh/.zshrc b/zsh/.zshrc index c319baf..331fa11 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -152,5 +152,5 @@ alias gst="git status" #alias burn="ssh kdamani@10.0.5.4" alias b="ssh kdamani@burne.sat" alias dns="ssh administrator@ctrlf-dns" - - +alias pyans="source ${HOME}/.venv/ansible/bin/activate" +alias pykep="source ${HOME}/.venv/kepler36/bin/activate" -- cgit v1.2.3