Skip to content

Commit

Permalink
refactor(neovim): open opened files as readonly by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Rudenko committed Apr 11, 2024
1 parent 4f2aa1e commit 714e86e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/neovim/files/lazy/lua/config/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ vim.api.nvim_create_autocmd("VimLeave", {
command = "set guicursor=a:ver10",
})

vim.api.nvim_create_autocmd("SwapExists", {
pattern = "*",
command = "let v:swapchoice = 'o'"
})

vim.api.nvim_del_augroup_by_name("lazyvim_highlight_yank")

-- This should be inside options.lua, but for some reason it doesn't work there
Expand Down

0 comments on commit 714e86e

Please sign in to comment.