-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Undefined variable: g:slime_config_defaults" on opening Python files #432
Comments
can you confirm your setup?
and anything else that you customized? |
Sorry I missed that. Here is my setup:
The configuration files for Neovim is generated by Home Manager, but I'm gonna simplify it by providing the relevant generated `init.vim`" Essential
set number " nu ; show line number
set relativenumber " rnu ; show relative line number
set scrolloff=999 " so ; always put the cursor between screen vertically
" set sidescrolloff=999 " siso ; always put the cursor between screen horizontally
set textwidth=80 " tw ; set line length to 80
set colorcolumn=80 " cc ; highlight the maximal line length
highlight ColorColumn ctermbg=238 " ; set the highlighting color to red
set nowrap " ; make sure that text is not line-wrapped
" Indentation
set autoindent " ai ; copy indent from current line when starting a new line
set smartindent " si ; do smart autoindenting when starting a new line
set expandtab " et ; convert tab to spaces
set tabstop=4 " ts ; number of spaces a <Tab> in the file counts for
set softtabstop=4 " sts ; number of spaces a <Tab> counts for while performing editing operations
set shiftwidth=4 " sw ; number of spaces to use for each step of (auto)indent
" Windows
set splitbelow " sb
set splitright " spr
" Syntax Highlighting
syntax on
filetype plugin on
filetype plugin indent on
" Other Options
set background=dark " ; To fix Vim color within tmux
" Clipboard Related
function! s:setClipboard()
set clipboard=unnamedplus
endfunction
function! s:unsetClipboard()
set clipboard=unnamedplus
endfunction
command! SetClipboard :call s:setClipboard()
command! UnsetClipboard :call s:unsetClipboard()
" Neovim Specific
set nohlsearch " nohl ; no highlight on searching
nnoremap Y yy
" Colorscheme Nord
let g:nord_disable_background = v:true
colorscheme nord
" Lualine
lua << END
require('lualine').setup()
END
" Vim Slime
let g:slime_target = "tmux"
let g:slime_default_config = {"socket_name": "default", "target_pane": "{last}"}
let g:slime_dont_ask_default = 1
autocmd FileType markdown let g:slime_cell_delimiter = "```"
autocmd FileType scheme let g:slime_cell_delimiter = ";;;"
nmap <c-c><c-s> <Plug>SlimeSendCell
" Easy Align
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
luafile /nix/store/190yjyvpdnxc09rfzgk6yv6bbw4238jr-source/configs/nvim/completion.lua
luafile /nix/store/190yjyvpdnxc09rfzgk6yv6bbw4238jr-source/configs/nvim/lualine.lua
luafile /nix/store/190yjyvpdnxc09rfzgk6yv6bbw4238jr-source/configs/nvim/firenvim.lua Content of |
My lua config for tmux works fine with python. My guess is the issue with Nix because if you don't get everything right in Nix there are problems (aspiring to learn Nix soon). I'm not actually a Vim/Neovim expert so I'd like a more minimal config for testing than is shown above, preferably that automatically installs/configures slime, or with instructions to easily install it just for that config. |
I think I found a plausible explanation, which is Neovim's load order for configuration files generated by NixOS/Home Manager. This is the result of
|
I had the same issue. ftplugin is loaded before init.lua. I would suggest initialising |
Hi!
Thanks for the awesome plugin. I'm having a strange error on opening Python files, however:
The important part is:
I tried using the latest version of vim-slime as I thought Home Manager/NixOS's version might have a problem but the error stays the same. What do you think?
Thanks!
The text was updated successfully, but these errors were encountered: