aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2022-07-10 22:15:05 +0000
committerKumar Damani <me@kumardamani.net>2022-07-10 22:15:05 +0000
commit81f34273a997b7a319598b2622ac15530d8dc534 (patch)
tree07dc611d8276fbacfafbd7863313c4423d86ca44
parentb182278f29cef1e2beb9b2446b63c8d4eb9bedff (diff)
routine updates
-rw-r--r--coc/.config/coc/extensions/package.json9
-rw-r--r--nvim/.config/nvim/coc-settings.json7
-rw-r--r--nvim/.config/nvim/init.vim7
-rw-r--r--zsh/.zshrc4
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=<leader>v
@@ -168,6 +168,7 @@ call plug#end()
map <Leader>g :ProjectFiles<CR>
map <Leader>f :Files<CR>
+ map <Leader>b :Buffers<CR>
" 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 <silent> ga <Plug>(coc-codeaction-line)
+ xmap <silent> ga <Plug>(coc-codeaction-selected)
+ nmap <silent> gA <Plug>(coc-codeaction)
imap <C-l> <Plug>(coc-snippets-expand)
" Use <C-j> for jump to next placeholder, it's default of coc.nvim
let g:coc_snippet_next = '<c-j>'
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"