Browse Source

using coc-python with pyright

Chris 5 years ago
parent
commit
bbdc2c3fbd

+ 11 - 12
README.md

@@ -128,15 +128,22 @@ Example:
 
 
 - async task/run
 - async task/run
 - vimspector
 - vimspector
-- git messenger
-- live server (bracey)
 - markdown preview
 - markdown preview
 - neomake
 - neomake
+- ale
+- multiple cursors
+- git messenger
 - markdown table
 - markdown table
+- spaceline (add colorscheme for mach 2)
 - add better whitespace plugin and a toggle
 - add better whitespace plugin and a toggle
 - People asked about vimwiki I kinda hate it but maybe I'll add it
 - People asked about vimwiki I kinda hate it but maybe I'll add it
-- tagalong
-- ctrlspace
+- neovide
+- move coc to coc.old in install script
+- later manually link pylance
+- lazynpm for floaterm
+
+## coc additions to check out
+
 - coc-fzf
 - coc-fzf
 - coc-async-tasks
 - coc-async-tasks
 - coc-stylelintplus
 - coc-stylelintplus
@@ -144,14 +151,6 @@ Example:
 - coc-floaterm
 - coc-floaterm
 - coc-actions
 - coc-actions
 - coc-bookmark
 - coc-bookmark
-- maybe better jsx highlighting
-- neovide
-- move coc to coc.old in install script
-- multiple cursors
-- pywright
-- later manually link pylance
-- ale
-- spaceline
 
 
 ## 0.5
 ## 0.5
 
 

+ 5 - 5
coc-settings.json

@@ -39,14 +39,14 @@
   "coc.preferences.hoverTarget": "float",
   "coc.preferences.hoverTarget": "float",
 
 
   // python config
   // python config
-  "python.linting.enabled": true,
-  "python.linting.pylintEnabled": true,
+  "python.linting.enabled": false,
+  "python.linting.pylintEnabled": false,
   "python.formatting.provider": "black",
   "python.formatting.provider": "black",
   // "python.formatting.blackPath": "~/.local/bin/black",
   // "python.formatting.blackPath": "~/.local/bin/black",
   // "python.linting.pylintPath": "~/.miniconda/envs/neovim/bin/pylint",
   // "python.linting.pylintPath": "~/.miniconda/envs/neovim/bin/pylint",
-  "python.condaPath": "~/.miniconda/bin/conda",
-  "python.sortImports.path": "~/.miniconda/envs/neovim/bin/isort",
-  "python.jediPath": "~/.miniconda/envs/neovim/lib/python3.8/site-packages",
+  // "python.condaPath": "~/.miniconda/bin/conda",
+  // "python.sortImports.path": "~/.miniconda/envs/neovim/bin/isort",
+  // "python.jediPath": "~/.miniconda/envs/neovim/lib/python3.8/site-packages",
 
 
   // snippets
   // snippets
   "snippets.ultisnips.directories": ["UltiSnips", "~/.config/nvim/snips"],
   "snippets.ultisnips.directories": ["UltiSnips", "~/.config/nvim/snips"],

+ 4 - 0
init.vim

@@ -41,6 +41,9 @@ else
   source $HOME/.config/nvim/plug-config/xtabline.vim
   source $HOME/.config/nvim/plug-config/xtabline.vim
   source $HOME/.config/nvim/plug-config/polyglot.vim
   source $HOME/.config/nvim/plug-config/polyglot.vim
   source $HOME/.config/nvim/plug-config/far.vim
   source $HOME/.config/nvim/plug-config/far.vim
+  source $HOME/.config/nvim/plug-config/tagalong.vim
+  source $HOME/.config/nvim/plug-config/illuminate.vim
+  source $HOME/.config/nvim/plug-config/bracey.vim
   luafile $HOME/.config/nvim/lua/plug-colorizer.lua
   luafile $HOME/.config/nvim/lua/plug-colorizer.lua
 endif
 endif
 
 
@@ -57,3 +60,4 @@ endif
 
 
 " let g:vimspector_base_dir=expand( '$HOME/.config/nvim/vimspector-config' )
 " let g:vimspector_base_dir=expand( '$HOME/.config/nvim/vimspector-config' )
 " let g:vimspector_enable_mappings='HUMAN'
 " let g:vimspector_enable_mappings='HUMAN'
+" let g:spaceline_colorscheme = 'one'

+ 2 - 0
keys/which-key.vim

@@ -50,6 +50,8 @@ let g:which_key_map.a = {
       \ 'name' : '+actions' ,
       \ 'name' : '+actions' ,
       \ 'c' : [':ColorizerToggle'        , 'colorizer'],
       \ 'c' : [':ColorizerToggle'        , 'colorizer'],
       \ 'e' : [':CocCommand explorer'    , 'explorer'],
       \ 'e' : [':CocCommand explorer'    , 'explorer'],
+      \ 'l' : [':Bracey'                 , 'start live server'],
+      \ 'L' : [':BraceyStop'             , 'stop live server'],
       \ 'n' : [':set nonumber!'          , 'line-numbers'],
       \ 'n' : [':set nonumber!'          , 'line-numbers'],
       \ 'r' : [':set norelativenumber!'  , 'relative line nums'],
       \ 'r' : [':set norelativenumber!'  , 'relative line nums'],
       \ 's' : [':let @/ = ""'            , 'remove search highlight'],
       \ 's' : [':let @/ = ""'            , 'remove search highlight'],

+ 2 - 0
plug-config/bracey.vim

@@ -0,0 +1,2 @@
+"cd ~/.config/autoload/plugged/bracey.vim for plug
+"run npm install --prefix server

+ 1 - 1
plug-config/coc.vim

@@ -11,7 +11,7 @@
     \ 'coc-emoji',
     \ 'coc-emoji',
     \ 'coc-cssmodules',
     \ 'coc-cssmodules',
     \ 'coc-yaml',
     \ 'coc-yaml',
-    \ 'coc-python',
+    \ 'coc-pyright',
     \ 'coc-explorer',
     \ 'coc-explorer',
     \ 'coc-svg',
     \ 'coc-svg',
     \ 'coc-prettier',
     \ 'coc-prettier',

+ 2 - 0
plug-config/illuminate.vim

@@ -0,0 +1,2 @@
+" have to disable for html for now until I can just blacklist the highlight group
+let g:Illuminate_ftblacklist = ['javascript', 'jsx', 'html']

+ 4 - 0
plug-config/polyglot.vim

@@ -1,3 +1,7 @@
 let g:polyglot_disabled = ['csv']
 let g:polyglot_disabled = ['csv']
 
 
 let g:python_highlight_all=1
 let g:python_highlight_all=1
+
+let g:vim_jsx_pretty_colorful_config = 1
+
+set re=0

+ 2 - 0
plug-config/tagalong.vim

@@ -0,0 +1,2 @@
+let g:tagalong_filetypes = ['html', 'xml', 'jsx', 'eruby', 'ejs', 'eco', 'php', 'htmldjango', 'javascriptreact', 'typescriptreact', 'javascript']
+let g:tagalong_verbose = 1

+ 10 - 0
vim-plug/plugins.vim

@@ -61,6 +61,7 @@ call plug#begin('~/.config/nvim/autoload/plugged')
     Plug 'neoclide/coc.nvim', {'branch': 'release'}
     Plug 'neoclide/coc.nvim', {'branch': 'release'}
     " Status Line
     " Status Line
     Plug 'vim-airline/vim-airline'
     Plug 'vim-airline/vim-airline'
+    " Plug 'hardcoreplayers/spaceline.vim'
     " Plug 'vim-airline/vim-airline-themes'
     " Plug 'vim-airline/vim-airline-themes'
     " Ranger
     " Ranger
     " Plug 'francoiscabrol/ranger.vim'
     " Plug 'francoiscabrol/ranger.vim'
@@ -102,9 +103,18 @@ call plug#begin('~/.config/nvim/autoload/plugged')
     Plug 'puremourning/vimspector'
     Plug 'puremourning/vimspector'
     " Better tabline
     " Better tabline
     Plug 'mg979/vim-xtabline'
     Plug 'mg979/vim-xtabline'
+    " undo time travel
     Plug 'mbbill/undotree'
     Plug 'mbbill/undotree'
+    " highlight all matches under cursor
     Plug 'RRethy/vim-illuminate'
     Plug 'RRethy/vim-illuminate'
+    " Find and replace
     Plug 'brooth/far.vim'
     Plug 'brooth/far.vim'
+    " Auto change html tags
+    Plug 'AndrewRadev/tagalong.vim'
+    " live server
+    Plug 'turbio/bracey.vim'
+    " Typescript syntax
+    Plug 'HerringtonDarkholme/yats.vim'
   endif
   endif