Compare commits

...

2 commits

Author SHA1 Message Date
cfe57543c6
nvim: after/ftplugin/rust: Update makeprg
`--all` is deprecated and is just an alias to `--workspace`.
2024-11-17 15:12:24 +05:30
deb5f2b7d4
nvim: after/ftplugin/zig: Set compiler
See runtime/compiler/zig_build.vim.
2024-11-17 15:12:24 +05:30
2 changed files with 3 additions and 1 deletions

View file

@ -4,7 +4,7 @@ local ra_config = lsp_utils.ra_config()
vim.lsp.start(ra_config)
vim.cmd.compiler('cargo')
vim.bo.makeprg = 'cargo build --all'
vim.bo.makeprg = 'cargo build --workspace'
vim.keymap.set('n', 'cbb', ":Dispatch! cargo build<CR>" , { noremap=true, buffer=0 })
vim.keymap.set('n', 'cbc', ":Dispatch! cargo clean<CR>" , { noremap=true, buffer=0 })

View file

@ -3,6 +3,8 @@ local zls_config = lsp_utils.zls_config()
vim.lsp.start(zls_config)
vim.cmd.compiler('zig_build')
vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, {
pattern = { "*/lib/zig/*" },
callback = function()