wip
This commit is contained in:
parent
675a09411d
commit
c00ae4838d
|
@ -176,6 +176,7 @@ require('lazy').setup({
|
||||||
-- this fixes an issue when jumping from neovim to tmux
|
-- this fixes an issue when jumping from neovim to tmux
|
||||||
-- but also means can not easily change pane size, width, height
|
-- but also means can not easily change pane size, width, height
|
||||||
-- 2023-10-26
|
-- 2023-10-26
|
||||||
|
-- 2023-10-31 dont' quite undertand behavior, hold off
|
||||||
{
|
{
|
||||||
"christoomey/vim-tmux-navigator",
|
"christoomey/vim-tmux-navigator",
|
||||||
event = "BufReadPre",
|
event = "BufReadPre",
|
||||||
|
@ -333,6 +334,7 @@ vim.o.termguicolors = true
|
||||||
-- Keymaps for better default experience
|
-- Keymaps for better default experience
|
||||||
-- See `:help vim.keymap.set()`
|
-- See `:help vim.keymap.set()`
|
||||||
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
|
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
|
||||||
|
vim.keymap.set({ 'n', 'v' }, 'q', '<Nop>', { silent = true })
|
||||||
|
|
||||||
-- REF: https://nanotipsforvim.prose.sh/keeping-your-register-clean-from-dd
|
-- REF: https://nanotipsforvim.prose.sh/keeping-your-register-clean-from-dd
|
||||||
-- if dd action holds content: keep it
|
-- if dd action holds content: keep it
|
||||||
|
@ -369,6 +371,10 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
||||||
pattern = '*',
|
pattern = '*',
|
||||||
}) -- }}}
|
}) -- }}}
|
||||||
|
|
||||||
|
-- easier, clearer, skeleton file
|
||||||
|
vim.cmd([[
|
||||||
|
autocmd BufNewFile *.qmd r ~/.config/kickstart/skeleton/skeleton.qmd
|
||||||
|
]])
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
-- which-key
|
-- which-key
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
# skeleton for *.R
|
||||||
|
# PURPOSE:
|
||||||
|
# observeEvent: side effect, print to console
|
||||||
|
# USAGE:
|
||||||
|
# interactive
|
||||||
|
|
||||||
|
library(shiny)
|
||||||
|
|
||||||
|
ui <- fluidPage(
|
||||||
|
textInput("name", "What's your name?"),
|
||||||
|
textOutput("greeting")
|
||||||
|
)
|
||||||
|
|
||||||
|
server <- function(input, output, session) {
|
||||||
|
string <- reactive(paste0("Hello ", input$name, "!"))
|
||||||
|
|
||||||
|
output$greeting <- renderText(string())
|
||||||
|
observeEvent(input$name, {
|
||||||
|
message("Greeting performed")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
shinyApp(ui, server)
|
||||||
|
|
||||||
|
vim:linebreak:nospell:nowrap:cul tw=78 fo=tqlnr foldcolumn=1 cc=+1 filetype=r
|
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
```{r}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
vim:linebreak:nospell:nowrap:cul tw=78 fo=tqlnr foldcolumn=1 cc=+1 filetype=r
|
Loading…
Reference in New Issue