wip
This commit is contained in:
parent
0ab3664bec
commit
ea0b10f35a
5 changed files with 143 additions and 155 deletions
20
lua/jim/Nvim-R.lua
Normal file
20
lua/jim/Nvim-R.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-- [[ Nvim-R ]]
|
||||
vim.cmd([[ let R_args= ['--no-save', '--quiet'] ]]) -- minimize startup
|
||||
vim.cmd([[ let R_assign=2 ]]) -- underline becomes left arrow
|
||||
vim.cmd([[ let R_enable_comment=1 ]]) -- toggle comments with xx
|
||||
|
||||
-- seems to work
|
||||
vim.cmd([[ let R_filetypes = ['r', 'rmd', 'rrst', 'rnoweb', 'quarto', 'rhelp'] ]])
|
||||
vim.cmd([[let g:LanguageClient_serverCommands = {
|
||||
\ 'r': ['R', '--slave', '-e', 'languageserver::run()'],
|
||||
\ }
|
||||
]])
|
||||
|
||||
vim.cmd([[
|
||||
" autocmd FileType r x :RStop<CR>
|
||||
]])
|
||||
|
||||
vim.cmd([[ autocmd FileType r nnoremap <leader>wwww <Nop> ]])
|
||||
vim.cmd([[
|
||||
" autocmd BufRead, BufNewFile *.r *.qmd *.rmd setlocal filetype = r
|
||||
]])
|
||||
Loading…
Add table
Add a link
Reference in a new issue