Fix some options for Go development and enable auto-format for rust
This commit is contained in:
@@ -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="<tab>"
|
||||
vim.g.UltiSnipsJumpForwardTrigger="<c-b>"
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user