Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
nvim-config
following HEAD (nightly build) neovim lua config, for Linux only, clone it to `~/.config/nvim` (by ttys3)
_G.protect_rust_toolchain = function() -- protect rust source files under ~/.rustup/toolchains/ -- idea from https://github.com/Xvezda/vim-readonly/blob/master/plugin/readonly.vim -- and https://github.com/rust-lang/rustup/issues/2550 local rustup_toolchain_root = "" .. vim.fn.expand "~" .. "/.rustup/toolchains/" if string.match(vim.fn.expand "%:p", rustup_toolchain_root) ~= nil then vim.bo.readonly = true vim.bo.modifiable = false end end vim.api.nvim_command("autocmd BufReadPost *.rs lua protect_rust_toolchain()")
_G.protect_rust_toolchain = function() -- protect rust source files under ~/.rustup/toolchains/ -- idea from https://github.com/Xvezda/vim-readonly/blob/master/plugin/readonly.vim -- and https://github.com/rust-lang/rustup/issues/2550 local rustup_toolchain_root = "" .. vim.fn.expand "~" .. "/.rustup/toolchains/" if string.match(vim.fn.expand "%:p", rustup_toolchain_root) ~= nil then vim.bo.readonly = true vim.bo.modifiable = false end end vim.api.nvim_command("autocmd BufReadPost *.rs lua protect_rust_toolchain()")
and the commit of my config here: https://github.com/ttys3/nvim-config/commit/9b0f8b2fdf8d8392e55b147e259c261991e761e9