From 9ccab65c4a1b8636f2e38b0ae497cfc4c49641d5 Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Sat, 31 Dec 2022 17:49:28 -0800 Subject: [PATCH] Fix some options for Go development and enable auto-format for rust --- nvim/.config/nvim/init.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index e1e1c8e..d4e0815 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -50,7 +50,7 @@ require('packer').startup(function(use) -- [Language Development] use { 'fatih/vim-go', - cmd = 'GoUpdateBinaries', + run = ':GoUpdateBinaries', } use 'rust-lang/rust.vim' @@ -159,6 +159,11 @@ vim.g.go_highlight_extra_types = 1 vim.g.go_highlight_operators = 1 vim.g.go_auto_type_info = 1 +-- Rust development options +vim.g.rustfmt_autosave = 1 +vim.g.rustfmt_emit_files = 1 +vim.g.rustfmt_fail_silently = 0 + -- UltiSnips keybindings vim.g.UltiSnipsExpandTrigger="" vim.g.UltiSnipsJumpForwardTrigger="" @@ -395,7 +400,7 @@ end -- Add any additional override configuration in the following tables. They will be passed to -- the `settings` field of the server config. You must look up that documentation yourself. local servers = { - gopls = {}, + --gopls = {}, sumneko_lua = { Lua = { workspace = { checkThirdParty = false },