1
0
Эх сурвалжийг харах

nixpkgs/neovim: automatically trust .nvim.lua we write

Thomas Dy 1 өдөр өмнө
parent
commit
4776d1e2e4

+ 6 - 0
.config/nixpkgs/neovim/config/lua/user/exrc.lua

@@ -17,3 +17,9 @@ if #dirs == 1 then
     end
   end
 end
+
+-- automatically trust configs we save
+vim.api.nvim_create_autocmd('BufWritePost', {
+  pattern = '.nvim.lua',
+  command = 'trust',
+})