✨ add vim-textobj-hydrogen + iron.vim ...
This commit is contained in:
parent
e0e8b51af6
commit
5748cb3fea
3 changed files with 34 additions and 0 deletions
|
|
@ -32,6 +32,12 @@ Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " fuzzy-finder
|
||||||
Plug 'ibhagwan/fzf-lua', {'branch': 'main'}
|
Plug 'ibhagwan/fzf-lua', {'branch': 'main'}
|
||||||
" optional for icon support
|
" optional for icon support
|
||||||
Plug 'kyazdani42/nvim-web-devicons'
|
Plug 'kyazdani42/nvim-web-devicons'
|
||||||
|
" for nvim nirvana
|
||||||
|
Plug 'hkupty/iron.nvim' " connect to REPLs (i.e. ipython)
|
||||||
|
Plug 'kana/vim-textobj-user'
|
||||||
|
Plug 'kana/vim-textobj-line'
|
||||||
|
Plug 'GCBallesteros/vim-textobj-hydrogen'
|
||||||
|
Plug 'GCBallesteros/jupytext.vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -60,6 +66,16 @@ let g:syntastic_python_checkers = ['python', 'flake8']
|
||||||
let g:syntastic_python_python_exec = 'python3'
|
let g:syntastic_python_python_exec = 'python3'
|
||||||
let g:syntastic_rst_checkers=['sphinx']
|
let g:syntastic_rst_checkers=['sphinx']
|
||||||
|
|
||||||
|
" nvim nirvana
|
||||||
|
" Jupytext
|
||||||
|
let g:jupytext_fmt = 'py'
|
||||||
|
let g:jupytext_style = 'hydrogen'
|
||||||
|
" Send cell to IronRepl and move to next cell.
|
||||||
|
" Depends on the text object defined in vim-textobj-hydrogen
|
||||||
|
" You first need to be connected to IronRepl
|
||||||
|
nmap ]x ctrih/^# %%<CR><CR>
|
||||||
|
luafile $HOME/.config/nvim/plugins.lua
|
||||||
|
|
||||||
" python stuff
|
" python stuff
|
||||||
let g:python3_host_prog = "$HOME/.venvs/nvim/bin/python"
|
let g:python3_host_prog = "$HOME/.venvs/nvim/bin/python"
|
||||||
|
|
||||||
|
|
|
||||||
17
.config/nvim/plugins.lua
Normal file
17
.config/nvim/plugins.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
local iron = require "iron.core"
|
||||||
|
iron.setup({
|
||||||
|
config = {
|
||||||
|
should_map_plug = false,
|
||||||
|
scratch_repl = true,
|
||||||
|
repl_definition = {
|
||||||
|
python = {
|
||||||
|
command = { "ipython" },
|
||||||
|
format = require("iron.fts.common").bracketed_paste,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keymaps = {
|
||||||
|
send_motion = "ctr",
|
||||||
|
visual_send = "ctr",
|
||||||
|
},
|
||||||
|
})
|
||||||
1
makefile
1
makefile
|
|
@ -39,6 +39,7 @@ setup_nvim: setup_vimwiki1 setup_vimwiki2 setup_vimwiki3
|
||||||
echo "configuring nvim"
|
echo "configuring nvim"
|
||||||
mkdir -p ~/.config/nvim
|
mkdir -p ~/.config/nvim
|
||||||
ln -s -f ~/dotfiles/.config/nvim/init.vim ~/.config/nvim/init.vim
|
ln -s -f ~/dotfiles/.config/nvim/init.vim ~/.config/nvim/init.vim
|
||||||
|
ln -s -f ~/dotfiles/.config/nvim/plugins.lua ~/.config/nvim/plugins.lua
|
||||||
|
|
||||||
setup_music:
|
setup_music:
|
||||||
mkdir -p ~/.config/mpd/playlists/
|
mkdir -p ~/.config/mpd/playlists/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue