Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Robitx/gp.nvim into lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
Robitx committed Jan 7, 2024
2 parents 2b78176 + c60bd7e commit 00b9f9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/gp.nvim.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*gp.nvim.txt* For NVIM v0.8.0 Last change: 2023 December 27
*gp.nvim.txt* For NVIM v0.8.0 Last change: 2024 January 04

==============================================================================
Table of Contents *gp.nvim-table-of-contents*
Expand Down
4 changes: 2 additions & 2 deletions lua/gp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1356,8 +1356,8 @@ M.prep_md = function(buf)
vim.api.nvim_command("setlocal noswapfile")
-- better text wrapping
vim.api.nvim_command("setlocal wrap linebreak")
-- auto save on TextChanged, TextChangedI
vim.api.nvim_command("autocmd TextChanged,TextChangedI <buffer=" .. buf .. "> silent! write")
-- auto save on TextChanged, InsertLeave
vim.api.nvim_command("autocmd TextChanged,InsertLeave <buffer=" .. buf .. "> silent! write")

-- register shortcuts local to this buffer
buf = buf or vim.api.nvim_get_current_buf()
Expand Down

0 comments on commit 00b9f9e

Please sign in to comment.