Fix some options for Go development and enable auto-format for rust

This commit is contained in:
Nicholas Novak
2022-12-31 17:49:28 -08:00
parent f5ccd40a6c
commit 9ccab65c4a
+7 -2
View File
@@ -50,7 +50,7 @@ require('packer').startup(function(use)
-- [Language Development] -- [Language Development]
use { use {
'fatih/vim-go', 'fatih/vim-go',
cmd = 'GoUpdateBinaries', run = ':GoUpdateBinaries',
} }
use 'rust-lang/rust.vim' 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_highlight_operators = 1
vim.g.go_auto_type_info = 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 -- UltiSnips keybindings
vim.g.UltiSnipsExpandTrigger="<tab>" vim.g.UltiSnipsExpandTrigger="<tab>"
vim.g.UltiSnipsJumpForwardTrigger="<c-b>" vim.g.UltiSnipsJumpForwardTrigger="<c-b>"
@@ -395,7 +400,7 @@ end
-- Add any additional override configuration in the following tables. They will be passed to -- 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. -- the `settings` field of the server config. You must look up that documentation yourself.
local servers = { local servers = {
gopls = {}, --gopls = {},
sumneko_lua = { sumneko_lua = {
Lua = { Lua = {
workspace = { checkThirdParty = false }, workspace = { checkThirdParty = false },